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:
Tom Tromey 2002-02-27 01:39:30 +00:00 committed by Tom Tromey
parent 7080ada154
commit 7fe4a89aed
2 changed files with 8 additions and 3 deletions

View file

@ -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);
}