mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
GH #1050 Foundation: fix gcc -Wshadow warnings
This commit is contained in:
@@ -207,9 +207,9 @@ 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 fd = 3; i < sysconf(_SC_OPEN_MAX); ++fd)
|
||||
{
|
||||
close(i);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
execvp(argv[0], &argv[0]);
|
||||
|
||||
Reference in New Issue
Block a user