Ádám Bakai has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19613


Change subject: Exit external_mini_cluster services when test is stopped
......................................................................

Exit external_mini_cluster services when test is stopped

In subprocess.cc it is explicitly set by prctl to prevent orphans when
the main process dies. However it is still only supported on
linux. Another possible solution was to use a signal handler and kill the
subprocesses, but glog is already using the signal handler. This
solution periodically checks if the parent pid is set to 1 (pid of init
process). If that happens, then the main thread exits.

Change-Id: I7ca88b3b8924dc7dc5c05a0239dfa86db67af255
---
M src/kudu/kserver/kserver.cc
M src/kudu/master/master_runner.cc
M src/kudu/mini-cluster/external_mini_cluster.cc
M src/kudu/tools/tool_action_master.cc
M src/kudu/tools/tool_action_tserver.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_server_runner.cc
7 files changed, 66 insertions(+), 51 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/13/19613/1
--
To view, visit http://gerrit.cloudera.org:8080/19613
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ca88b3b8924dc7dc5c05a0239dfa86db67af255
Gerrit-Change-Number: 19613
Gerrit-PatchSet: 1
Gerrit-Owner: Ádám Bakai <aba...@cloudera.com>

Reply via email to