diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-02-11 17:38:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-02-11 17:38:53 +0000 |
commit | c0e09dfe5ff3630f914f1008941a1cfdacbd3db2 (patch) | |
tree | fbd1629012b6c6d1ec11c32b8010814616e6eae8 /src/conn-tools/s6-ipcserverd.c | |
parent | 4d157070b438574bb7c5c30cb62a135f056b4289 (diff) | |
download | s6-c0e09dfe5ff3630f914f1008941a1cfdacbd3db2.tar.xz |
bugfix: unignore SIGPIPE before execing a user-controlled process
Diffstat (limited to 'src/conn-tools/s6-ipcserverd.c')
-rw-r--r-- | src/conn-tools/s6-ipcserverd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conn-tools/s6-ipcserverd.c b/src/conn-tools/s6-ipcserverd.c index 6a8f84e..1c834e5 100644 --- a/src/conn-tools/s6-ipcserverd.c +++ b/src/conn-tools/s6-ipcserverd.c @@ -286,6 +286,7 @@ static void new_connection (int s, char const *remotepath, char const *const *ar else if (!pid) { selfpipe_finish() ; + sig_restore(SIGPIPE) ; run_child(s, uid, gid, num+1, remotepath, argv) ; } |