Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix use of fcntl(.., F_CLOSEM)

  • Loading branch information...
commit d744c843ec1f0b6a56392eed61bc79ffc2139660 1 parent 6463a06
@FooBarWidget FooBarWidget authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/common/Utils.cpp
View
2  ext/common/Utils.cpp
@@ -951,7 +951,7 @@ closeAllFileDescriptors(int lastToKeepOpen) {
#if defined(F_CLOSEM)
int ret;
do {
- ret = fcntl(fd, F_CLOSEM, lastToKeepOpen + 1);
+ ret = fcntl(lastToKeepOpen + 1, F_CLOSEM);
} while (ret == -1 && errno == EINTR);
if (ret != -1) {
return;
Please sign in to comment.
Something went wrong with that request. Please try again.