Skip to content

Commit b5c878b

Browse files
authored
Merge pull request #19 from aclowes/master
remove WNOHANG
2 parents ce78202 + b9d5444 commit b5c878b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func removeZombies(childPid int) {
147147
var status syscall.WaitStatus
148148

149149
// wait for an orphaned zombie process
150-
pid, err := syscall.Wait4(-1, &status, syscall.WNOHANG, nil)
150+
pid, err := syscall.Wait4(-1, &status, 0, nil)
151151

152152
if pid == -1 {
153153
// if errno == ECHILD then no children remain; exit cleanly

0 commit comments

Comments
 (0)