Skip to content

Commit

Permalink
Merge pull request #761 from hallyn/2016-01-11/preservens.1
Browse files Browse the repository at this point in the history
preserve inherited fds for stop hook
  • Loading branch information
stgraber committed Jan 12, 2016
2 parents ffe3443 + 330cbe3 commit 52ba9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/start.c
Expand Up @@ -1068,7 +1068,7 @@ static int lxc_spawn(struct lxc_handler *handler)
goto out_delete_net;
}

if (!preserve_ns(handler->nsfd, handler->clone_flags, handler->pid, &errmsg)) {
if (!preserve_ns(handler->nsfd, handler->clone_flags | preserve_mask, handler->pid, &errmsg)) {
INFO("Failed to store namespace references for stop hook: %s",
errmsg ? errmsg : "(Out of memory)");
free(errmsg);
Expand Down

0 comments on commit 52ba9c5

Please sign in to comment.