Skip to content

Commit

Permalink
attach: initialize init_pid field to -ESRCH
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent 18ed7fd commit 48fd08f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/attach.c
Expand Up @@ -151,6 +151,7 @@ static struct attach_context *alloc_attach_context(void)

ctx->dfd_self_pid = -EBADF;
ctx->dfd_init_pid = -EBADF;
ctx->init_gid = -ESRCH;
ctx->init_uid = 0;
ctx->init_gid = 0;

Expand Down

0 comments on commit 48fd08f

Please sign in to comment.