• 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: Quitting all active applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quitting all active applications


  • Subject: Re: Quitting all active applications
  • From: Martin Stoufer <email@hidden>
  • Date: Thu, 28 Aug 2008 10:52:30 -0700
  • Organization: LBNL

I had always naively assumed that all the some *Framework underneath an app was setting up signal handlers for you with default behaviours. If this isn't the case, then yes any killall approach will cause loss of data.

Now I'm interested into finding out why this isn't the case.


Clark Cox wrote:
GUI applications do not generally handle SIGTERM (or any other signals
for that matter). Killing GUI applications is a Bad Thing™ :)

Randal is correct, this will lose your saved data in any currently
open applications.

On Thu, Aug 28, 2008 at 10:39 AM, Martin Stoufer <email@hidden> wrote:
Actually no, since the default kill signal is TERM, apps will be allowed to
prompt to save if necessary. This assumes the app is handling that signal
properly. We could send KILL or ABRT and that would just end the processes
w/o any save options.

Randall Meadows wrote:
On Aug 28, 2008, at 10:46 AM, Martin Stoufer wrote:

A small app that utilized an NSTask object whose system command would be
'killall -u <your short username here> -m <regex>'.
And that would be a great way to lose data, if any of the applications
getting killed had unsaved documents.

--
* Martin C. Stoufer              *
* ISS/IT                         *
* Lawrence Berkeley National Lab *
* 510-486-5306                   *
* MS 937-700                     *


_______________________________________________

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





-- * Martin C. Stoufer * * ISS/IT * * Lawrence Berkeley National Lab * * 510-486-5306 * * MS 937-700 *


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________

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: Quitting all active applications
      • From: "Michael Ash" <email@hidden>
References: 
 >Quitting all active applications (From: Phil Faber <email@hidden>)
 >Re: Quitting all active applications (From: Rob Keniger <email@hidden>)
 >Re: Quitting all active applications (From: Phil Faber <email@hidden>)
 >Re: Quitting all active applications (From: Martin Stoufer <email@hidden>)
 >Re: Quitting all active applications (From: Randall Meadows <email@hidden>)
 >Re: Quitting all active applications (From: Martin Stoufer <email@hidden>)
 >Re: Quitting all active applications (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: ODBCKit problems with MySQL DB
  • Next by Date: Re: ODBCKit problems with MySQL DB
  • Previous by thread: Re: Quitting all active applications
  • Next by thread: Re: Quitting all active applications
  • Index(es):
    • Date
    • Thread