Commit 5a5fa91d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

rootwrap: use BSD SO_NOSIGPIPE

parent cb186021
......@@ -193,6 +193,10 @@ int main (int argc, char *argv[])
if (pair[0] < 3)
goto error; /* we want 0, 1 and 2 open */
#ifdef SO_NOSIGPIPE
setsockopt(pair[1], SOL_SOCKET, SO_NOSIGPIPE, &(int){ 1 }, sizeof (int));
#endif
pid_t pid = fork ();
switch (pid)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment