]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - src/process.c
Re-enable SIGPIPE for children so they have default behaviour
[sojka/lightdm.git] / src / process.c
index d9b7eb9ae16875a3a164533f2cf5bbdf17860c7a..75357db615b99466fe31b0988479cbfb8d102395 100644 (file)
@@ -236,6 +236,9 @@ process_start (Process *process, gboolean block)
         for (i = 0; i < env_length; i++)
             setenv (env_keys[i], env_values[i], TRUE);
 
+        /* Reset SIGPIPE handler so the child has default behaviour (we disabled it at LightDM start) */
+        signal (SIGPIPE, SIG_DFL);
+
         execvp (argv[0], argv);
         _exit (EXIT_FAILURE);
     }