From 4c322a613f508180faf0dc3049f35b2744e85905 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 2 Jan 2017 16:06:04 +0100 Subject: [PATCH] Ignore SIGPIPE When the child process in tests/_client.lua breaks and exits (for example: Remove the call to Gtk.main), we get a broken pipe. When trying to write to the pipe that connects awesome to the child process, we get a SIGPIPE signal that causes awesome to exit without any good error message. Fix this by ignoring SIGPIPE. We do not want to be killed by it anyway. Signed-off-by: Uli Schlachter --- awesome.c | 1 + 1 file changed, 1 insertion(+) diff --git a/awesome.c b/awesome.c index f27bba641..8aac69e6d 100644 --- a/awesome.c +++ b/awesome.c @@ -575,6 +575,7 @@ main(int argc, char **argv) sigaction(SIGFPE, &sa, 0); sigaction(SIGILL, &sa, 0); sigaction(SIGSEGV, &sa, 0); + signal(SIGPIPE, SIG_IGN); /* We have no clue where the input focus is right now */ globalconf.focus.need_update = true;