* 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.
This commit is contained in:
Corinna Vinschen
2002-06-04 16:38:13 +00:00
parent 6bfca3cca5
commit 4e1388472d
3 changed files with 28 additions and 4 deletions

View File

@ -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 ();