X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bin%2Frootwrap.c;h=37d88396faf55c5ec62db1bd187a5a0b8fe488b3;hb=e045b625af773c7f84e78a277f8c053447c1ff19;hp=1527406e2d2d8faa050f16653fe217db0bcd214f;hpb=69d7fdea2da6f773fd7993f78c2bea494eb2d819;p=vlc diff --git a/bin/rootwrap.c b/bin/rootwrap.c index 1527406e2d..37d88396fa 100644 --- a/bin/rootwrap.c +++ b/bin/rootwrap.c @@ -34,7 +34,9 @@ #include #include #include /* getrlimit() */ +#ifdef RLIMIT_RTPRIO #include +#endif #include #include @@ -170,6 +172,7 @@ static void rootprocess (int fd) close (sock); continue; } + close (sock); } send_err (fd, errno); }