]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't die from SIGPIPE on daemon disconnect
authorRay Strode <rstrode@redhat.com>
Tue, 5 Aug 2008 21:18:31 +0000 (17:18 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 5 Aug 2008 21:27:45 +0000 (17:27 -0400)
src/client/plymouth.c

index 37606d982ff2f5ad8d58102087b7e244a9c7225e..746bec94b3fc964e9039aa3be2e3bd0bfcb1b935 100644 (file)
@@ -22,6 +22,7 @@
 #include "config.h"
 
 #include <errno.h>
+#include <signal.h>
 #include <stdlib.h>
 #include <stdio.h>
 
@@ -180,6 +181,8 @@ main (int    argc,
 
   exit_code = 0;
 
+  signal (SIGPIPE, SIG_IGN);
+
   state.loop = ply_event_loop_new ();
   state.client = ply_boot_client_new ();
   state.command_parser = ply_command_parser_new ("plymouth", "Boot splash control client");