mirror of
https://github.com/videolan/vlc.git
synced 2024-12-03 23:04:35 +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)
|
if (pair[0] < 3)
|
||||||
goto error; /* we want 0, 1 and 2 open */
|
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 ();
|
pid_t pid = fork ();
|
||||||
switch (pid)
|
switch (pid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user