• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What's actually important to do before exiting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: What's actually important to do before exiting?
      • From: Jens Alfke <email@hidden>
References: 
 >Re: What's actually important to do before exiting? (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: NSTask flaky about posting terminate notification, in 10.6
  • Next by Date: Re: NSTask flaky about posting terminate notification, in 10.6
  • Previous by thread: Re: What's actually important to do before exiting?
  • Next by thread: Re: What's actually important to do before exiting?
  • Index(es):
    • Date
    • Thread