win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.
* include/win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern. * win32.cc (_Jv_platform_close_on_exec): Implemented. * gnu/java/net/natPlainDatagramSocketImplWin32.cc (create): Use new signature of _Jv_platform_close_on_exec. * gnu/java/net/natPlainSocketImplWin32.cc (create): Eliminated a few typecasts Use new signature of _Jv_platform_close_on_exec. (accept): Eliminated a few typecasts Use new signature of _Jv_platform_close_on_exec. * java/io/natFileDescriptorWin32.cc (open): Use _Jv_platform_close_on_exec. From-SVN: r73325
This commit is contained in:
parent
eb4ad71ac1
commit
bbf76ec06c
6 changed files with 53 additions and 17 deletions
|
@ -133,7 +133,13 @@ java::io::FileDescriptor::open (jstring path, jint jflags) {
|
|||
throw new FileNotFoundException (_Jv_WinStrError (cpath, dwErrorCode));
|
||||
}
|
||||
}
|
||||
return (jint)handle;
|
||||
|
||||
// Make this handle non-inheritable so that child
|
||||
// processes don't inadvertently prevent us from
|
||||
// closing this file.
|
||||
_Jv_platform_close_on_exec (handle);
|
||||
|
||||
return (jint) handle;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue