mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jie Yu" <>
Subject Review Request 32805: Terminated the perf subprocess once the parent exits.
Date Fri, 03 Apr 2015 01:42:00 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Ben Mahler, Ian Downes, and Vinod Kone.

Bugs: MESOS-2462

Repository: mesos


Terminated the perf subprocess once the parent exits.

The idea is to have a nanny process which installs a SIGTERM handler which will kill the process
group (of course, we need to put the nanny and perf process to the same process group). We
set the death signal of the nanny process to be SIGTERM. In that way, when slave exits, the
nanny process will receive a SIGTERM, which will then kill all processes in the process group.


  src/linux/perf.cpp cad6c80e2a9608ff02fc2b8976efba52713dd5a8 



sudo make check

I also manually verified it by terminating the slave while perf is in progress. The perf is
killed immediately.


Jie Yu

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message