aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/SignalHandler.cc
AgeCommit message (Collapse)AuthorFilesLines
2014-02-18Fix race condition on shutdownMathias Gumz1-79/+0
This commit fixes primarily a race condition that occurs when xinit(1) shuts down: by not acting properly fluxbox gets caught in an infinite loop. It caused bug #1100. xinit(1) sends a SIGHUP signal to all processes. fluxbox tries to shutdown itself properly by shutting down workspaces and screens. While doing that, the Xserver might be gone already. Additionally, fluxbox used to restart() itself on SIGHUP, which is clearly not the right thing to do when xinit(1) is about to end the session. So, fluxbox does this: * handling SIGHUP now shuts down fluxbox without clearing workspaces and screens. * A 2 second alarm() is triggered in Fluxbox::shutdown() as a last resort * XSetIOErrorHandler() is used to recognize the disconnect from the xserver. * SIGUSR1 is for restarting fluxbox, SIGUSR2 for reloading the config * FbTk/SignalHandler.cc/hh is gone; this unused abstraction served currently no real purpose. Signal handling is now done in main.cc * Unrelated to the issue itself src/main.cc was trimmed down quite a bit and the code (responsible for handling the command line interface) was moved to src/cli*
2011-10-31FbTk/SignalHandler.cc: Use HAVE_SIGACTION, with signal() fallbackRyan Pavlik1-1/+7
This fixes platforms without sigaction, like Windows.
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-6/+7
2008-08-16some cleanupMark Tiefenbruck1-7/+0
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2006-07-01more dead functionsmarkt1-0/+2
2006-02-16updated copyright infomathias1-1/+1
2005-01-24copyright datemathias1-1/+1
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2003-05-13minor changesfluxgen1-6/+6
2002-12-01Indenting from tabs to emacs 4-spacerathnor1-30/+30
2002-11-27using SignalEventHandler class instead of the old EventHandler templatefluxgen1-7/+5
2002-11-26initial importfluxgen1-0/+81