Close server-related file descriptors before executing child process

Closes #170 github issue.
This commit is contained in:
Keith Winstein
2012-04-13 13:48:56 -04:00
parent 0eec0b60f0
commit 7be90ae244
3 changed files with 15 additions and 22 deletions
+2 -1
View File
@@ -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; }