[Bug libgcj/31228] Race condition between setting close-on-exec and Runtime.exec()
daney at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 26 06:07:00 GMT 2007
------- Comment #4 from daney at gcc dot gnu dot org 2007-03-26 07:07 -------
Subject: Bug 31228
Author: daney
Date: Mon Mar 26 07:07:13 2007
New Revision: 123208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123208
Log:
PR libgcj/31228
* configure.ac: Add checks for getrlimit and sys/resource.h.
* include/posix.h (_Jv_platform_close_on_exec): Remove.
* include/config.h.in: Regenerate.
* configure: Regenerate.
* gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
_Jv_platform_close_on_exec;
* gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
(accept): Likewise.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
* java/lang/natPosixProcess.cc: Include sys/resource.h.
(nativeSpawn): Close all file descriptors. Don't set FD_CLOEXEC on
pipes.
Modified:
branches/gcc-4_2-branch/libjava/ChangeLog
branches/gcc-4_2-branch/libjava/configure
branches/gcc-4_2-branch/libjava/configure.ac
branches/gcc-4_2-branch/libjava/gnu/java/net/natPlainDatagramSocketImplPosix.cc
branches/gcc-4_2-branch/libjava/gnu/java/net/natPlainSocketImplPosix.cc
branches/gcc-4_2-branch/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
branches/gcc-4_2-branch/libjava/include/config.h.in
branches/gcc-4_2-branch/libjava/include/posix.h
branches/gcc-4_2-branch/libjava/java/lang/natPosixProcess.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31228
More information about the Gcc-bugs
mailing list