Commit 7d9fb3e9 by Daniel Lezcano Committed by Daniel Lezcano

fix kill -1 process

In the process of rollbacking, the handler->pid is not set we must not kill it. Otherwsise, kill(-1, SIGKILL), ouch ! ... Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent d45fdd27
...@@ -261,7 +261,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler) ...@@ -261,7 +261,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
void lxc_abort(const char *name, struct lxc_handler *handler) void lxc_abort(const char *name, struct lxc_handler *handler)
{ {
lxc_set_state(name, handler, ABORTING); lxc_set_state(name, handler, ABORTING);
kill(handler->pid, SIGKILL); if (handler->pid > 0)
kill(handler->pid, SIGKILL);
} }
struct start_arg { struct start_arg {
......
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