This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: fixlet in natPosixProcess


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]