diff --git a/src/server.c b/src/server.c index b2bce6a7..a5f6892c 100644 --- a/src/server.c +++ b/src/server.c @@ -1836,7 +1836,7 @@ int restartServer(int flags, mstime_t delay) { for (j = 3; j < (int)server.maxclients + 1024; j++) { /* Test the descriptor validity before closing it, otherwise * Valgrind issues a warning on close(). */ - if (fcntl(j, IF_WIN32(1, F_GETFD), 0) != -1) close(j); + if (fcntl(j, IF_WIN32(F_GETFL, 1), 0) != -1) close(j); } /* Execute the server with the original command line. */