diff options
author | David Daney <ddaney@avtrex.com> | 2007-03-23 00:06:41 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2007-03-23 00:06:41 +0000 |
commit | 46ecc2bc5c8455615f9739847277cbc5fe746c25 (patch) | |
tree | c1ef9bb4fb3b4432ae7bce87707fc879e3e8af77 /libjava/configure | |
parent | 92ef5cf99970d490ebdd508c774b86bd4a821887 (diff) | |
download | gcc-46ecc2bc5c8455615f9739847277cbc5fe746c25.zip gcc-46ecc2bc5c8455615f9739847277cbc5fe746c25.tar.gz gcc-46ecc2bc5c8455615f9739847277cbc5fe746c25.tar.bz2 |
re PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec())
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.
From-SVN: r123138
Diffstat (limited to 'libjava/configure')
-rwxr-xr-x | libjava/configure | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libjava/configure b/libjava/configure index 8a81965a..79806d3 100755 --- a/libjava/configure +++ b/libjava/configure @@ -9602,12 +9602,13 @@ else + for ac_func in strerror ioctl select fstat open fsync sleep opendir \ gmtime_r localtime_r readdir_r getpwuid_r getcwd \ access stat lstat mkdir rename rmdir unlink utime chmod readlink \ nl_langinfo setlocale \ inet_pton uname inet_ntoa \ - fork execvp pipe sigaction ftruncate mmap \ + fork execvp getrlimit pipe sigaction ftruncate mmap \ getifaddrs do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` @@ -10063,7 +10064,8 @@ done -for ac_header in execinfo.h unistd.h dlfcn.h + +for ac_header in execinfo.h unistd.h dlfcn.h sys/resource.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then |