You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
420 B

  1. --- a/util/ulockmgr_server.c
  2. +++ b/util/ulockmgr_server.c
  3. @@ -124,7 +124,7 @@ static int receive_message(int sock, voi
  4. return res;
  5. }
  6. -static int closefrom(int minfd)
  7. +static int closefrom2(int minfd)
  8. {
  9. DIR *dir = opendir("/proc/self/fd");
  10. if (dir) {
  11. @@ -384,7 +384,7 @@ int main(int argc, char *argv[])
  12. dup2(nullfd, 1);
  13. }
  14. close(3);
  15. - closefrom(5);
  16. + closefrom2(5);
  17. while (1) {
  18. char c;
  19. int sock;