At 9:29 AM -0700 4/28/05, Craig Schamp wrote:
>
>SIGKILL can't be caught or ignored. You can't install a handler for it.
Exactly, but this isn't to say that the process doesn't handle the signal.
If you can't install a handler, you can't do anything about the
signal. The process will terminate with no recourse for corrective
action. That's not really "handling" the signal, unless we're just
playing semantic games with the word.
You can't have a handler for SIGKILL, pure and simple, yes that would
make no sense. However the contention was that the process doesn't
shut down cleanly of a SIGKILL is received and that the process
itself wasn't what handles the KILL signal, it does. It proper kills
itself off using the same exact mechanism that it does if the program
it was running had called exit() itself.
What's being confused here was a bug in MySQL that resulted in
databases getting hosed even if it *did* exit itself properly. The
databases needed to be closed first (that's not the same ass the
files the databases consist of being closed), before an exit. If that
wasn't done you had issues. This was a bug, it's been fixed, and it
has nothing to do with a process getting somehow winked out of
existence w/o a clean and orderly exit that closes files properly and
removes process structures -- all of which *does* happen in the
context of the process itself, not in any mythical scheduler process
-- and is properly and orderly performed. A process receiving a
SIGKILL does orderly close its files, resources and datastructures.
It doesn't just go "poof" and leave things all messy.
--
-dhan
------------------------------------------------------------------------
Dan Shoop AIM: iWiring
Systems & Networks Architect http://www.iwiring.net/
email@hidden http://www.ustsvs.com/
AIM: ColonelMode11780
iWiring designs and supports Internet systems and networks based on
Mac OS X, unix, and Open Source application technologies and offers
24x7, guaranteed support to registered clients, at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden