diff options
Diffstat (limited to 'src/shared/async.c')
-rw-r--r-- | src/shared/async.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shared/async.c b/src/shared/async.c index 1cf1936d4b..6af63d7a9c 100644 --- a/src/shared/async.c +++ b/src/shared/async.c @@ -103,10 +103,9 @@ int asynchronous_close(int fd) { * * We usually prefer calling waitid(), but before kernel 4.7 it didn't support __WCLONE while * waitpid() did. Hence let's use waitpid() here, it's good enough for our purposes here. */ - for (;;) { - if (waitpid(pid, NULL, WEXITED|__WCLONE) >= 0 || errno != EINTR) + for (;;) + if (waitpid(pid, NULL, __WCLONE) >= 0 || errno != EINTR) break; - } } return -EBADF; /* return an invalidated fd */ |