Propagate return status code from last child to fail.
authorMichael Brown <mcb30@etherboot.org>
Fri, 19 Jan 2007 14:00:51 +0000 (14:00 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 19 Jan 2007 14:00:51 +0000 (14:00 +0000)
src/core/resolv.c

index 61bdfb0..60195ba 100644 (file)
@@ -113,7 +113,7 @@ static void resolv_sigchld ( struct async *async,
 
        /* If we have no children left, return failure */
        if ( --(resolution->pending) == 0 )
-               async_done ( async, -ENXIO );
+               async_done ( async, rc );
 }
 
 /**