mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-06 00:31:10 +01:00
Merge pull request #737 from pocoproject/revert-736-master
Revert "fix: android arm64/x86_64 compile error with getdtablesize"
This commit is contained in:
commit
afb6a09db7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user