Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.3: Kill another user logged in under Fast User Switching' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Kill another user logged in under Fast User Switching
Authored by: grumpy on Dec 01, '03 08:54:08PM

Using the TERM signal is no different to using the KILL signal if the application hasn't registered a special signal handler for the TERM signal to gracefully shutdown the process. Check out the sigaction manual page and you will see this is the case as the default action for TERM is "terminate the process", exactly the same as KILL.

Thus you are at the mercy of the application developer as to whether they intercept TERM and do anything special. You often see programs from the UNIX world which simply don't bother because the developers don't know any better. A decent program will catch both TERM and INT and shutdown nicely if they need to.

[ Reply to This | # ]