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: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 3 Sep 2009 00:28:51 +0200
Le 2 sept. 2009 à 23:11, Erik Buck a écrit :
- 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.
I'm almost sure Mach ports don't have to be properly closed before
process end.
- 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
-- Jean-Daniel
_______________________________________________
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