diff options
Diffstat (limited to 'libjava/win32.cc')
-rw-r--r-- | libjava/win32.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/win32.cc b/libjava/win32.cc index 3bf1391016e..dfed8c43660 100644 --- a/libjava/win32.cc +++ b/libjava/win32.cc @@ -363,3 +363,11 @@ _Jv_pipe (int filedes[2]) { return _pipe (filedes, 4096, _O_BINARY); } + +void +_Jv_platform_close_on_exec (HANDLE h) +{ + // Mark the handle as non-inheritable. This has + // no effect under Win9X. + SetHandleInformation (h, HANDLE_FLAG_INHERIT, 0); +} |