Patch: FYI: fixlet in natPosixProcess
Tom Tromey
tromey@redhat.com
Tue Feb 26 17:50:00 GMT 2002
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);
}
More information about the Java-patches
mailing list