natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.

* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
	`1'.

From-SVN: r50080
This commit is contained in:
Tom Tromey 2002-02-27 01:38:57 +00:00 committed by Tom Tromey
parent bb6ff7a3a4
commit d5694d9aad
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-02-26 Tom Tromey <tromey@redhat.com>
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
`1'.
2002-02-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* Makefile.am (GCJCOMPILE): Use -fCLASSPATH not -fclasspath. Fixes

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