Changeset 1307

Show
Ignore:
Timestamp:
11/26/08 20:58:48 (4 years ago)
Author:
ahu
Message:

Daniel Drown discovered we were not cleaning up killed pipe backends, leaving zombies. Applied his patch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/modules/pipebackend/coprocess.cc

    r1064 r1307  
    7575{ 
    7676  int status; 
    77   if(!waitpid(d_pid, &status, WNOHANG))  
     77  if(!waitpid(d_pid, &status, WNOHANG)) { 
    7878    kill(d_pid, 9); 
     79    waitpid(d_pid, &status, 0); 
     80  } 
    7981   
    8082  close(d_fd1[1]);