[gnome-builder] main: ignore SIGPIPE



commit fe69848975a2b08aee725014dc58a9036528e761
Author: Christian Hergert <chergert redhat com>
Date:   Fri Aug 10 15:56:26 2018 -0700

    main: ignore SIGPIPE
    
    We might as well set this since we use pipes between processes fairly
    regularly and don't really expect this.

 src/main.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index a3abe0525..6bfad3c6c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -108,6 +108,9 @@ main (int   argc,
   /* Setup our gdb fork()/exec() helper */
   bug_buddy_init ();
 
+  /* Always ignore SIGPIPE */
+  signal (SIGPIPE, SIG_IGN);
+
   /*
    * We require a desktop session that provides a properly working
    * DBus environment. Bail if for some reason that is not the case.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]