mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-07 09:48:04 +01:00
Merge pull request #736 from csabakeszegh/master
fix: android arm64/x86_64 compile error with getdtablesize
This commit is contained in:
commit
49b35918ab
@ -200,7 +200,7 @@ ProcessHandleImpl* ProcessImpl::launchByForkExecImpl(const std::string& command,
|
|||||||
if (outPipe) outPipe->close(Pipe::CLOSE_BOTH);
|
if (outPipe) outPipe->close(Pipe::CLOSE_BOTH);
|
||||||
if (errPipe) errPipe->close(Pipe::CLOSE_BOTH);
|
if (errPipe) errPipe->close(Pipe::CLOSE_BOTH);
|
||||||
// close all open file descriptors other than stdin, stdout, stderr
|
// close all open file descriptors other than stdin, stdout, stderr
|
||||||
for (int i = 3; i < getdtablesize(); ++i)
|
for (int i = 3; i < sysconf(_SC_OPEN_MAX); ++i)
|
||||||
{
|
{
|
||||||
close(i);
|
close(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user