natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.
authorTom Tromey <tromey@redhat.com>
Wed, 27 Feb 2002 01:39:30 +0000 (01:39 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 27 Feb 2002 01:39:30 +0000 (01:39 +0000)
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
`1'.

From-SVN: r50081

libjava/ChangeLog
libjava/java/lang/natPosixProcess.cc

index 4701a7d8bb22ab2a2af74f3567af4f11a0f7d2ab..68b551e1092e29f3ee3245b34b4a1f61e099bf9d 100644 (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
index c7dffe9034552fb9885792557f9570e990eea9bb..5ff49e3e3820a5304ab1914c9e518134e0c0a768 100644 (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);
 }