console: set SFD_CLOEXEC on signal fd

parent 558add0f
...@@ -139,7 +139,7 @@ struct lxc_tty_state *lxc_console_sigwinch_init(int srcfd, int dstfd) ...@@ -139,7 +139,7 @@ struct lxc_tty_state *lxc_console_sigwinch_init(int srcfd, int dstfd)
return ts; return ts;
} }
ts->sigfd = signalfd(-1, &mask, 0); ts->sigfd = signalfd(-1, &mask, SFD_CLOEXEC);
if (ts->sigfd < 0) { if (ts->sigfd < 0) {
SYSERROR("failed to create signal fd"); SYSERROR("failed to create signal fd");
sigprocmask(SIG_SETMASK, &ts->oldmask, NULL); sigprocmask(SIG_SETMASK, &ts->oldmask, NULL);
......
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