r241: Merge r240 from trunk
authoryoe <yoe>
Mon, 12 Feb 2007 12:33:26 +0000 (12:33 +0000)
committeryoe <yoe>
Mon, 12 Feb 2007 12:33:26 +0000 (12:33 +0000)
nbd-server.c

index e3dabeb..4ba40aa 100644 (file)
@@ -680,7 +680,7 @@ void sigchld_handler(int s) {
        pid_t pid;
 
        while((pid=waitpid(-1, &status, WNOHANG)) > 0) {
-               if(WIFEXITED(&status)) {
+               if(WIFEXITED(status)) {
                        msg3(LOG_INFO, "Child exited with %d", WEXITSTATUS(status));
                }
                i=g_hash_table_lookup(children, &pid);