/mandos/trunk

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

« back to all changes in this revision

Viewing changes to plugin-runner.c

  • Committer: Teddy Hogeborn
  • Date: 2009-02-05 02:42:39 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090205024239-th0d287ifnl7l3tv
* 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 */