mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user