• 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: Bill Bumgarner <email@hidden>
  • Date: Wed, 02 Sep 2009 13:35:44 -0700

On Sep 2, 2009, at 1:26 PM, Sidney San Martín wrote:
It's well-established that some tasks, like deallocating memory, are
totally unnecessary before your application exits, but others, like
calling asl_close() if you've called asl_open() earlier, are less
established.

With the advent of sudden termination, knowing what needs to be done
before exiting or being SIGKILLed, and what constitutes clean or dirty
state, has become even more important.

What should I be concerned about?

Unsaved user state.

That is about it.

The system should otherwise be hardened against spontaneous termination of processes. To not be invites DoS attacks, at the least, or opens security holes, at the worst.

What Sudden Termination drives home, though, is that sudden termination is something all processes should have always supported; many a user is all about force quit or hold down the power off button to shut down the machine. Scary, but true.

There isn't much you can do about document data in a non-autosaving environment, but there is more user state that is often not persisted until termination to think about. User defaults, for example. If you have a default that has changed, consider forcing it to be persisted more often than just termination. Certainly, you'll want to do so if you want to fully embrace sudden termination.

b.bum


_______________________________________________

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


References: 
 >What's actually important to do before exiting? (From: Sidney San Martín <email@hidden>)

  • Prev by Date: What's actually important to do before exiting?
  • Next by Date: Re: I can't find it in the docs so I know I'm missing it some where
  • Previous by thread: What's actually important to do before exiting?
  • Next by thread: Re: What's actually important to do before exiting?
  • Index(es):
    • Date
    • Thread