start: backport monitor_pid handling

parent 051ef273
...@@ -769,6 +769,8 @@ int lxc_init(const char *name, struct lxc_handler *handler) ...@@ -769,6 +769,8 @@ int lxc_init(const char *name, struct lxc_handler *handler)
const char *loglevel; const char *loglevel;
struct lxc_conf *conf = handler->conf; struct lxc_conf *conf = handler->conf;
handler->monitor_pid = lxc_raw_getpid();
lsm_init(); lsm_init();
TRACE("Initialized LSM"); TRACE("Initialized LSM");
......
...@@ -102,6 +102,9 @@ struct lxc_handler { ...@@ -102,6 +102,9 @@ struct lxc_handler {
/* The child's pid. */ /* The child's pid. */
pid_t pid; pid_t pid;
/* The monitor's pid. */
pid_t monitor_pid;
/* Whether the child has already exited. */ /* Whether the child has already exited. */
bool init_died; bool init_died;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment