mirror of
https://github.com/videolan/vlc.git
synced 2024-12-03 06:43:40 +08:00
rootwrap: use BSD SO_NOSIGPIPE
This commit is contained in:
parent
cb186021f6
commit
5a5fa91d2d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user