Explicitly close child process on exit

This commit is contained in:
Keith Winstein
2011-10-13 00:07:52 -04:00
parent 210f487d05
commit 197bbb5272
+4
View File
@@ -92,6 +92,10 @@ int main( void )
} else { } else {
/* parent */ /* parent */
serve( master ); serve( master );
if ( close( master ) < 0 ) {
perror( "close" );
exit( 1 );
}
} }
printf( "[stm-server is exiting.]\n" ); printf( "[stm-server is exiting.]\n" );