natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'. From-SVN: r50081
This commit is contained in:
parent
7080ada154
commit
7fe4a89aed
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue