David Daney
52a55497c8
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: r123208
2007-03-26 06:07:13 +00:00
..
2006-08-21 22:07:30 +00:00
2007-03-26 06:07:13 +00:00
2004-07-01 04:09:07 +00:00
2004-09-26 13:38:49 -07:00
2003-06-13 12:20:45 +00:00
2006-05-10 17:17:20 +00:00
2006-05-20 23:33:07 +02:00
2006-02-27 18:26:26 +01:00
2006-03-28 16:12:52 +00:00
2006-10-14 20:11:12 +00:00
2006-10-14 20:11:12 +00:00
2005-09-08 21:26:25 +00:00
2006-08-10 09:56:03 +00:00
2007-01-22 23:33:24 +00:00
2007-01-22 23:33:24 +00:00
2006-09-22 02:12:12 +00:00
2006-10-12 18:18:52 +00:00
2005-09-23 21:31:04 +00:00
2007-01-17 18:10:26 +00:00
2006-07-20 17:30:42 +00:00
2006-06-26 16:31:06 +00:00
2006-08-02 22:18:05 +02:00
2004-07-09 03:39:35 +00:00
2006-07-21 23:45:03 +00:00
2007-03-26 06:07:13 +00:00
2006-03-10 23:31:15 +01:00
2004-07-14 13:09:09 +00:00
2006-03-16 02:44:10 +00:00
2004-09-26 13:38:49 -07:00
2003-06-13 12:20:45 +00:00
2006-07-24 00:22:25 +00:00
2006-07-04 22:21:40 +02:00
2006-04-10 16:01:23 +00:00