lxc_init: Use sig_atomic_t for was_interrupted

Suggested-by: Markus Elfring Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 01660ccc
...@@ -50,7 +50,7 @@ static struct option options[] = { ...@@ -50,7 +50,7 @@ static struct option options[] = {
{ 0, 0, 0, 0 }, { 0, 0, 0, 0 },
}; };
static int was_interrupted = 0; static sig_atomic_t was_interrupted = 0;
static void interrupt_handler(int sig) static void interrupt_handler(int sig)
{ {
......
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