mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 04:56:31 +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,7 +261,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
|
||||
void lxc_abort(const char *name, struct lxc_handler *handler)
|
||||
{
|
||||
lxc_set_state(name, handler, ABORTING);
|
||||
kill(handler->pid, SIGKILL);
|
||||
if (handler->pid > 0)
|
||||
kill(handler->pid, SIGKILL);
|
||||
}
|
||||
|
||||
struct start_arg {
|
||||
|
Loading…
Reference in New Issue
Block a user