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


Click here to return to the 're: bypassing the dialog (Perform a background log out via Fast User Switching)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
re: bypassing the dialog (Perform a background log out via Fast User Switching)
Authored by: src-kc8rmb on Apr 03, '04 01:17:14PM

Or, the brute force Unix way to tell ALL of your processes to cleanup and exit immediately as if the system was shutting down NOW (w/o actually rebooting), is:

tcsh% kill -TERM -1

(A) Don't do this as root or using sudo -- you'll blow away the whole system.

(B) Don't do this if you care about your data or configuration in any open applications -- these normally take time to shutdown because they are cleaning things up and saving unsaved/cache data.

(C) Don't listed to people who tell you to use a kill -KILL or kill -9 -- until you understand about signal handlers and realize that it's the per-process equivalent to flipping off the power on a running system.

(D) Because of (B), Understand that there's a chance you might have to reboot anyway, and an outside chance that some process won't cleanup correctly. However, this same chance exists with shutdown or most other "express" methods besides the Apple blessed.

But hey, if you want to juggle knives, do it as safely as possible.



[ Reply to This | # ]