Wait for descendant processes to exit.
This commit is contained in:
committed by
David Dollar
parent
e9b5ed81b8
commit
99204d7c1d
@@ -97,6 +97,7 @@ private ######################################################################
|
||||
rescue PTY::ChildExited, Interrupt
|
||||
info "process exiting", process
|
||||
end
|
||||
Process.waitall
|
||||
end
|
||||
end
|
||||
|
||||
@@ -106,6 +107,7 @@ private ######################################################################
|
||||
info "killing #{process.name} in pid #{pid}"
|
||||
Process.kill(signal, pid)
|
||||
end
|
||||
Process.waitall
|
||||
exit 0
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user