[systemd-devel] Zombie process still exists after stopping gdm.service

Lennart Poettering lennart at poettering.net
Mon Apr 20 08:04:24 PDT 2015


On Mon, 20.04.15 08:54, Daniel Drake (drake at endlessm.com) wrote:

> gdm git does have KillMode=mixed, but the slightly old gdm I'm running
> here also does not have any KillMode assignment.

KillMode=mixed means that systemd will SIGKILL all cgroup member
processes before "stop" returns.

> 
> I'm investigating further at the moment. I've found a mistake in what
> I wrote earlier - when gdm receives SIGTERM it *does* do a
> kill/waitpid() on the child X server.
> However the process seems to disappear before waitpid() returns -
> currently trying to understand why. Ideas welcome.

maybe the main gdm process is not the one waiting, but a worker
process is, and the main process kills the worker process without the
worker process handling that nicely?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list