natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'. From-SVN: r50081
This commit is contained in:
parent
7080ada154
commit
7fe4a89aed
2 changed files with 8 additions and 3 deletions
|
@ -284,7 +284,7 @@ java::lang::ConcreteProcess::startProcess (jstringArray progarray,
|
|||
myclose (msgp[0]);
|
||||
cleanup (args, env);
|
||||
|
||||
fcntl (outp[1], F_SETFD, 1);
|
||||
fcntl (inp[0], F_SETFD, 1);
|
||||
fcntl (errp[0], F_SETFD, 1);
|
||||
fcntl (outp[1], F_SETFD, FD_CLOEXEC);
|
||||
fcntl (inp[0], F_SETFD, FD_CLOEXEC);
|
||||
fcntl (errp[0], F_SETFD, FD_CLOEXEC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue