Merge pull request #737 from pocoproject/revert-736-master

Revert "fix: android arm64/x86_64 compile error with getdtablesize"
This commit is contained in:
Günter Obiltschnig 2015-03-06 17:49:44 +01:00
commit afb6a09db7

View File

@ -200,7 +200,7 @@ ProcessHandleImpl* ProcessImpl::launchByForkExecImpl(const std::string& command,
if (outPipe) outPipe->close(Pipe::CLOSE_BOTH);
if (errPipe) errPipe->close(Pipe::CLOSE_BOTH);
// close all open file descriptors other than stdin, stdout, stderr
for (int i = 3; i < sysconf(_SC_OPEN_MAX); ++i)
for (int i = 3; i < getdtablesize(); ++i)
{
close(i);
}