diff options
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 1003815fb..f135b9935 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1427,8 +1427,8 @@ fhandler_pipe::lseek (off_t offset, int whence) return -1; } -void __stdcall -set_inheritance (HANDLE &h, int not_inheriting, const char *name) +void +fhandler_base::set_inheritance (HANDLE &h, int not_inheriting, const char *name) { HANDLE newh; @@ -1438,16 +1438,17 @@ set_inheritance (HANDLE &h, int not_inheriting, const char *name) #ifndef DEBUGGING else { - CloseHandle (h); + hclose (h); h = newh; } #else else if (!name) { - CloseHandle (h); + hclose (h); h = newh; } else + /* FIXME: This won't work with sockets */ { ForceCloseHandle2 (h, name); h = newh; |