summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5ba73e9)
If "machinectl poweroff" or "machinectl reboot" is used on a
systemd-nspawn container started with --keep-unit and --register, it
should *only* send the appropriate signal to the leader PID (i.e. the
container's systemd process). It shouldn't fall through to
manager_kill_unit() to also send the signal to the unit. The latter
ends up killing systemd-nspawn, which takes down the container
prematurely.
if (kill(m->leader, signo) < 0)
return -errno;
if (kill(m->leader, signo) < 0)
return -errno;
}
/* Otherwise make PID 1 do it for us, for the entire cgroup */
}
/* Otherwise make PID 1 do it for us, for the entire cgroup */