Port sighandler to tree-branch

This commit is contained in:
Axel Wagner
2010-12-30 21:09:32 +01:00
committed by Michael Stapelberg
parent 2d05c3a37d
commit fb6d117c42
4 changed files with 13 additions and 8 deletions

View File

@ -385,6 +385,12 @@ int main(int argc, char *argv[]) {
manage_existing_windows(root);
setup_signal_handler();
/* Ignore SIGPIPE to survive errors when an IPC client disconnects
* while we are sending him a message */
signal(SIGPIPE, SIG_IGN);
/* Autostarting exec-lines */
if (autostart) {
struct Autostart *exec;