Close server-related file descriptors before executing child process
Closes #170 github issue.
This commit is contained in:
@@ -107,7 +107,8 @@ namespace Network {
|
||||
public:
|
||||
Connection( const char *desired_ip, const char *desired_port ); /* server */
|
||||
Connection( const char *key_str, const char *ip, int port ); /* client */
|
||||
|
||||
~Connection();
|
||||
|
||||
void send( string s );
|
||||
string recv( void );
|
||||
int fd( void ) const { return sock; }
|
||||
|
||||
Reference in New Issue
Block a user