forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subprocess: add KillAndWait() and allow customization of exit signal
This patch does two things: - It introduces a KillAndWait() method that terminates and fully reaps a process. - It allows one to customize the exit signal delivered to a subprocess when it goes out of scope. The default signal is SIGKILL which doesn't let subprocesses clean up after themselves. Change-Id: Iaf31bd4ea6de2917521a9852714fb33cfbec1f61 Reviewed-on: http://gerrit.cloudera.org:8080/6741 Tested-by: Adar Dembo <[email protected]> Reviewed-by: David Ribeiro Alves <[email protected]>
- Loading branch information
Showing
3 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters