Win32Process.java: Added comment.
* java/lang/Win32Process.java: Added comment. * include/posix.h (_Jv_platform_close_on_exec): New function. Include fcntl.h. * include/win32.h (_Jv_platform_close_on_exec): New function. * java/net/natPlainSocketImpl.cc (create): Set close-on-exec flag. (accept): Likewise. * java/net/natPlainDatagramSocketImpl.cc (create): Set close-on-exec flag. * java/io/natFileDescriptorPosix.cc (open): Set close-on-exec flag. From-SVN: r50536
This commit is contained in:
parent
b29bb8325b
commit
0c1fcb02b1
7 changed files with 45 additions and 6 deletions
|
@ -28,13 +28,17 @@ details. */
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <gcj/cni.h>
|
||||
|
||||
extern int _Jv_select (int n, fd_set *, fd_set *, fd_set *, struct timeval *);
|
||||
extern jlong _Jv_platform_gettimeofday ();
|
||||
extern void _Jv_platform_initialize (void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
inline void
|
||||
_Jv_platform_close_on_exec (jint fd)
|
||||
{
|
||||
// Ignore errors.
|
||||
fcntl (fd, F_SETFD, FD_CLOEXEC);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue