mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jie Yu (JIRA)" <>
Subject [jira] [Commented] (MESOS-8037) ns::clone should spawn process, which is a direct child
Date Thu, 28 Sep 2017 18:51:00 GMT


Jie Yu commented on MESOS-8037:

Can I get more context on this? What issue you guys want to solve?

> ns::clone should spawn process, which is a direct child
> -------------------------------------------------------
>                 Key: MESOS-8037
>                 URL:
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Andrei Budnik
> `ns::clone` does double-fork in order to be able to enter given PID namespace and returns
grandchild's pid, which is not a direct child of a parent process, hence parent process can
not retrieve status of an exited grandchild process.
> As second fork is implemented via `os::clone`, we can pass `CLONE_PARENT` flag. Also,
we have to handle both intermediate child process and grandchild process to avoid zombies.
> Motivation behind this improvement is that both `docker exec` and `LXC attach` can enter
process' PID namespace, while still controlling child's status code.

This message was sent by Atlassian JIRA

View raw message