Re: What's actually important to do before exiting?
Re: What's actually important to do before exiting?
- Subject: Re: What's actually important to do before exiting?
- From: Erik Buck <email@hidden>
- Date: Wed, 2 Sep 2009 14:11:22 -0700 (PDT)
- Posix message queues are a finite kernal resource that is not freed when processes terminate incorrectly.
- Posix semaphores are a finite kernal resource that is not freed when processes terminate incorrectly.
- MACH IPC message queues are a finite kernal resource that is not freed when processes terminate incorrectly.
- Socket's left open may tie up a port for several minutes when processes terminate incorrectly.
- NFS file locks may tie up a file for several minutes when processes terminate incorrectly.
- The /tmp directory can be littered with junk until the next reboot or cron job when processes terminate incorrectly.
Few Cocoa programmers ever deal directly with the above system resources, but I am a Cocoa programmer, and I use them every day
Unix is generally good about cleaning up when processes exit, but there are holes large enough to drive trucks through.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden