On Wed, Jun 16, 2004 at 02:47:30PM -0400, David T Hollis wrote:
applications get a signal that they are being shutdown and they can
respond to it. This is where Word would ask you to save your file, etc.
The downside is that applications can prevent the logoff/shutdown from
happening and that can cause maddening system 'hangs'. Is there such a
signal that Linux/UNIX apps receive? Does it come from X, Gnome/KDE?
X session management for the case of logout. For the case of administrator
initiated shutdown they get SIGTERM a few seconds and SIGKILL