mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-13 10:59:13 +02:00
21 lines
420 B
Diff
21 lines
420 B
Diff
|
--- a/util/ulockmgr_server.c
|
||
|
+++ b/util/ulockmgr_server.c
|
||
|
@@ -124,7 +124,7 @@ static int receive_message(int sock, voi
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
-static int closefrom(int minfd)
|
||
|
+static int closefrom2(int minfd)
|
||
|
{
|
||
|
DIR *dir = opendir("/proc/self/fd");
|
||
|
if (dir) {
|
||
|
@@ -384,7 +384,7 @@ int main(int argc, char *argv[])
|
||
|
dup2(nullfd, 1);
|
||
|
}
|
||
|
close(3);
|
||
|
- closefrom(5);
|
||
|
+ closefrom2(5);
|
||
|
while (1) {
|
||
|
char c;
|
||
|
int sock;
|