You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 07:02:25 UTC
svn commit: r1131728 - /incubator/mesos/trunk/src/nexus_exec.cpp
Author: benh
Date: Sun Jun 5 05:02:25 2011
New Revision: 1131728
URL: http://svn.apache.org/viewvc?rev=1131728&view=rev
Log:
When an executor dies it needs to killpg using 0 not getpid().
Modified:
incubator/mesos/trunk/src/nexus_exec.cpp
Modified: incubator/mesos/trunk/src/nexus_exec.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/nexus_exec.cpp?rev=1131728&r1=1131727&r2=1131728&view=diff
==============================================================================
--- incubator/mesos/trunk/src/nexus_exec.cpp (original)
+++ incubator/mesos/trunk/src/nexus_exec.cpp Sun Jun 5 05:02:25 2011
@@ -105,7 +105,7 @@ protected:
// ourself) hoping to clean up any processes this executor
// launched itself.
// TODO(benh): Maybe do a SIGTERM and then later do a SIGKILL?
- killpg(getpid(), SIGKILL);
+ killpg(0, SIGKILL);
}
default: {