/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugin-runner.c

* plugin-runner.c (handle_sigchld): Clarify logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
      break;
233
233
    }
234
234
    if(pid == -1){
235
 
      if(errno != ECHILD){
236
 
        perror("waitpid");
 
235
      if(errno == ECHILD){
 
236
        /* No child processes */
 
237
        break;
237
238
      }
238
 
      /* No child processes */
239
 
      break;
 
239
      perror("waitpid");
240
240
    }
241
241
    
242
242
    /* A child exited, find it in process_list */