mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 01:52:34 +00:00
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: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
d45fdd2707
commit
7d9fb3e9d2
@ -261,6 +261,7 @@ 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);
|
||||||
|
if (handler->pid > 0)
|
||||||
kill(handler->pid, SIGKILL);
|
kill(handler->pid, SIGKILL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user