mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Downes" <>
Subject Review Request 27295: os::killtree() supports case when root pid has exited.
Date Tue, 28 Oct 2014 18:28:11 GMT

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

Review request for mesos, Ben Mahler and Vinod Kone.

Bugs: MESOS-1875

Repository: mesos-git


Improve os::killtree() for the case when the root pid has exited and
it has been instructed to either follow process groups or sessions. It
will now kill all processes (and their trees) with pgid or session
matching the root pid.


  3rdparty/libprocess/3rdparty/stout/include/stout/os/killtree.hpp fa1950cc8849fcd81d425c651848e05661111078

  3rdparty/libprocess/3rdparty/stout/tests/os_tests.cpp e9f37dfd3cf54c3ca85d74716b3ee4262b065fad



Added a test where the root pid exits (and is reaped), leaving behind a reparented subtree.
This test initially fails.

+  // -+- child exit 0             [new session and process group leader]
+  //  -+- grandchild sleep 100
+  //   -+- great grandchild sleep 100


Ian Downes

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