Commit 2eef2bda by S.Çağlar Onur Committed by Stéphane Graber

ignore SIGKILL (CTRL-C) and SIGQUIT (CTRL-\) - issue #313

parent cf03f973
......@@ -26,6 +26,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
......@@ -771,6 +772,10 @@ int lxc_attach(const char* name, const char* lxcpath, lxc_attach_exec_t exec_fun
goto cleanup_error;
}
/* ignore SIGKILL (CTRL-C) and SIGQUIT (CTRL-\) - issue #313 */
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);
/* reap intermediate process */
ret = wait_for_pid(pid);
if (ret < 0)
......
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