diff options
-rw-r--r-- | src/rpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -91,8 +91,10 @@ void rpc_handle( int listenFd ) close( fd ); // TODO: Allow more for root (eg. cancel reboot/poweroff) continue; } - if ( ! doublefork() ) + if ( ! doublefork() ) { + close( fd ); continue; // Parent continues + } handleClient( fd, &ucred ); exit( 0 ); } |