[dmd-concurrency] Shutdown protocol

Andrei Alexandrescu andrei at erdani.com
Thu Jan 21 12:18:51 PST 2010


Sean Kelly wrote:
> On Jan 21, 2010, at 9:40 AM, Sean Kelly wrote:
>> All this talk makes me think of a funny feature Apple added to Mac OS X 10.6 (Snow Leopard): Sudden Termination. When you shutdown the computer, the OS literally kills every process having the sudden termination flag set. Applications are free to set and unset this flag as they run. Typically, an application with no document open will set its sudden termination flag. But the flag is not set by default so applications can do proper cleanup.
> 
> Funny, that sounds a lot like setting the isDaemon flag on threads :-)

That flag says "I don't need to do special cleanup upon exit, just kill 
me." I think that's different from isDaemon.

Andrei


More information about the dmd-concurrency mailing list