This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: fixlet in natPosixProcess
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 26 Feb 2002 19:04:35 -0700
- Subject: Patch: FYI: fixlet in natPosixProcess
- Reply-to: tromey at redhat dot com
I'm checking this in on the branch and the trunk.
This fixes a minor bug in natPosixProcess.
Tom
2002-02-26 Tom Tromey <tromey@redhat.com>
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
`1'.
Index: java/lang/natPosixProcess.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/natPosixProcess.cc,v
retrieving revision 1.10
diff -u -r1.10 natPosixProcess.cc
--- java/lang/natPosixProcess.cc 2002/02/02 07:43:16 1.10
+++ java/lang/natPosixProcess.cc 2002/02/27 01:34:04
@@ -284,7 +284,7 @@
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);
}