Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comments on the Quit command



email@hidden wrote:

>In case you (or someone else on the list) doesn't know, "Force Quit" works
>by sending a Unix signal (SIGTERM, I believe), so the two (on OS X, at
>least) are really the same thing.

SIGKILL (value 9) is the Force-Quit signal. It's the only one that's
unignorable and uncatchable.

Force-Quit may send a SIGTERM (or SIGQUIT or SIGINT) first and see if it
terminates, followed by a SIGKILL only if the target process is especially
stubborn. I'm not sure about this, but escalating signals seems reasonable
to me.

When I wrote the signal-handling in Easy Posix Toolkit, I did a fair amount
of research into ANSI C signals, Posiz signals, BSD signals, and even NT
signals. There's a lot of allowable variation, a lot of hand-waving, and
it's a real PITA to figure out lots of things. A lot of what I discovered
is summarized in the doc-comments for the SignalNames interface in the Easy
Posix Toolkit.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.