iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

avoid zombies #98

Closed ghost closed 8 years ago

ghost commented 8 years ago

When processes created by driver_exec terminate, they are not reaped because dnscat the doesn't waitpid(). This change portably sets the SIGCHLD handler to SIG_IGN which causes zombie processes to be reaped automatically.

iagox86 commented 8 years ago

Sweet, thanks!