diff --git a/stm-server.cpp b/stm-server.cpp index 81f3c27..075bfd9 100644 --- a/stm-server.cpp +++ b/stm-server.cpp @@ -92,6 +92,10 @@ int main( void ) } else { /* parent */ serve( master ); + if ( close( master ) < 0 ) { + perror( "close" ); + exit( 1 ); + } } printf( "[stm-server is exiting.]\n" );