• 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: 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

  • Follow-Ups:
    • Re: What's actually important to do before exiting?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: I can't find it in the docs so I know I'm missing it some where
  • Next by Date: Larger "round button" in Interface Builder?
  • 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