Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-06-04 20:38:13 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-06-04 20:38:13 +0400
commit4e1388472d90347bc80dc30a94312d74c2f1c8e1 (patch)
tree970b2d494a8daefbd32a16e4aa46be10fb5dd316 /winsup/cygwin/fhandler.h
parent6bfca3cca518b043bf35ac90ad6dbc91da872de5 (diff)
* fhandler.h (class fhandler_socket): Add private method
fixup_after_fork (bool, HANDLE). * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Move functionality to new private method. Add closing parent socket if not called from dup(). Create method new calling private method with appropriate parameter. (fhandler_socket::fixup_after_exec): Call private method fixup_after_fork with appropriate parameter. (fhandler_socket::dup): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index c5e17b101..3d8d7ef37 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -367,6 +367,8 @@ class fhandler_socket: public fhandler_base
struct _WSAPROTOCOL_INFOA *prot_info_ptr;
char *sun_path;
+ void fixup_after_fork (bool, HANDLE);
+
public:
fhandler_socket ();
~fhandler_socket ();