After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700152 - killall gdm keeps other gdm launched processes running, preventing it from being started again
killall gdm keeps other gdm launched processes running, preventing it from be...
Status: RESOLVED NOTGNOME
Product: gdm
Classification: Core
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-12 09:36 UTC by Pacho Ramos
Modified: 2013-05-23 20:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pacho Ramos 2013-05-12 09:36:27 UTC
If I run:
killall gdm

Some processes launched by gdm keep running (like gdm-slave, gnome-session --mode=gdm...), and, then, gdm cannot be started again if I don't run:
pkill -u gdm

before

This is a problem with using start-stop-daemon (from debian or Gentoo) to restart gdm process. What is the proper way to kill gdm then?

Thanks
Comment 1 Pacho Ramos 2013-05-19 21:15:31 UTC
Pressing Ctrl+C works, but running kill -INT doesn't (it keeps running gdm processes running as root, while killing those run as gdm user). Only killing with negative pid value ("kill -- -pid") works :/
Comment 2 Pacho Ramos 2013-05-20 20:46:25 UTC
I thought Ctrl+C was using INT, but some kind of difference looks to be present. Do you know what signal is using Ctrl+C if not "INT"? That one should work using kill...
Comment 3 Matthias Clasen 2013-05-21 10:22:52 UTC
Use whatever your init system provides to control multi-process services.

For systemd  systemctl stop gdm  works fine
Comment 4 Pacho Ramos 2013-05-21 22:11:10 UTC
And, do you have any idea about why it doesn't behave normally when I try to kill it?
Comment 5 Pacho Ramos 2013-05-21 22:39:17 UTC
Or how is systemd killing it :)
Comment 6 Matthias Clasen 2013-05-22 02:23:48 UTC
systemd creates a cgroup for each service, and uses that to reliably kill all the processes belonging to the the service.
Comment 7 Matthias Clasen 2013-05-23 10:16:56 UTC
really not a gdm bug
Comment 8 Pacho Ramos 2013-05-23 20:48:17 UTC
Are you sure it's not a gdm problem to not be able to terminal its launched processes when "gdm" one is terminated?