Changeset 1910

Show
Ignore:
Timestamp:
08/15/2007 10:36:35 AM (13 months ago)
Author:
jan
Message:

wait() returns the PID, check against -1 (fixes #1301 again)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/server.c

    r1905 r1910  
    15421542                                int status; 
    15431543 
    1544                                 if (0 == wait(&status)) { 
     1544                                if (-1 != wait(&status)) { 
    15451545                                        /* a child terminated, restart it */ 
    15461546                                        num_childs++;