Unverified Commit 8f355cad by Stéphane Graber Committed by GitHub

Merge pull request #2677 from brauner/2018-10-07/attach_reset_signal_mask

attach: reset signal mask
parents acf67bc9 f157b056
......@@ -1483,6 +1483,15 @@ int lxc_attach(const char *name, const char *lxcpath,
}
if (pid == 0) {
if (options->attach_flags & LXC_ATTACH_TERMINAL) {
ret = pthread_sigmask(SIG_SETMASK,
&terminal.tty_state->oldmask, NULL);
if (ret < 0) {
SYSERROR("Failed to reset signal mask");
_exit(EXIT_FAILURE);
}
}
ret = attach_child_main(&payload);
if (ret < 0)
ERROR("Failed to exec");
......
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