[systemd-devel] [PATCH] service: don't report alien child as alive when it's not

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Jun 9 15:28:27 PDT 2013


On Sun, Jun 09, 2013 at 05:28:44PM +0100, Ross Lagerwall wrote:
> When a sigchld is received from an alien child, main_pid is set to
> 0 then service_enter_running calls main_pid_good to check if the
> child is running.  This incorrectly returned true because
> kill(main_pid, 0) would return >= 0.
> 
> This fixes an error where a service would die and the cgroup would
> become empty but the service would still report as active (running).
Applied.

Zbyszek


More information about the systemd-devel mailing list