You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joris Van Remoortere (JIRA)" <ji...@apache.org> on 2016/05/16 16:39:12 UTC

[jira] [Comment Edited] (MESOS-3639) Implement stout/os/windows/killtree.hpp

    [ https://issues.apache.org/jira/browse/MESOS-3639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15284805#comment-15284805 ] 

Joris Van Remoortere edited comment on MESOS-3639 at 5/16/16 4:38 PM:
----------------------------------------------------------------------

https://reviews.apache.org/r/47169/


was (Author: jvanremoortere):
{code}
commit 769701ce36f639224a4b6763e234d153d58b297e
Author: Daniel Pravat <dp...@outlook.com>
Date:   Mon May 16 12:20:37 2016 -0400

    Windows: Stout: Implemented `killtree` using NT job objects.
    
    Review: https://reviews.apache.org/r/47169/
{code}

> Implement stout/os/windows/killtree.hpp
> ---------------------------------------
>
>                 Key: MESOS-3639
>                 URL: https://issues.apache.org/jira/browse/MESOS-3639
>             Project: Mesos
>          Issue Type: Task
>          Components: stout
>            Reporter: Alex Clemmer
>            Assignee: Daniel Pravat
>              Labels: mesosphere, windows
>             Fix For: 0.29.0
>
>
> killtree() is implemented using Windows Job Objects. The processes created by the  executor are associated with a job object using `create_job'. killtree() is simply terminating the job object. 
> Helper functions:
> `create_job` function creates a job object whose name is derived from the `pid` and associates the `pid` process with the job object. Every process started by the process which is part of the job object becomes part of the job object. The job name should match the name used in `kill_job`.
> `kill_job` function assumes the process identified by `pid` is associated with a job object whose name is derive from it. Every process started by the process which is part of the job object becomes part of the job object. Destroying the task will close all such processes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)