<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>Yes, it is normal to have two processes.<br><br></div>The first lightdm process is the daemon (PID 894). When you log in, PAM requires that we start a child process to run the PAM functions inside. LightDM does this by setting up some pipes to communicate with the daemon and then re-running itself with --session-child (PID 2852). PAM then (as root) does whatever it is configured for to authenticate the user and set up this process to be suitable as your session. Once that is complete we fork another process, drop permissions and actually run your session. We need to keep the session child open so when your session ends, we can run the cleanup process with PAM.<br></div><br></div>Hope this helps!<br></div>--Robert<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 15 Dec 2015 at 08:04 Plmalternate Plmalternate <<a href="mailto:plmalternate@gmail.com">plmalternate@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Under Ubuntu 14.04 with plain Openbox, lightdm, and<br>
lightdm-gtk-greeter, lxtask shows me 2 lightdm processes all of the<br>
time, whereas I would have expected 1. The output of<br>
<br>
ps aux | grep lightdm | grep -v grep<br>
<br>
is<br>
<br>
root 894 0.0 0.1 35192 3492 ? SLsl 22:19 0:00 lightdm<br>
root 2766 1.9 1.3 98744 26980 tty7 Ssl+ 22:49 0:45<br>
/usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0<br>
-nolisten tcp vt7 -novtswitch<br>
root 2852 0.0 0.1 19876 3796 ? Sl 22:49 0:00<br>
lightdm --session-child 12 19<br>
<br>
So is that as it should be or have I broken something? If it is as it<br>
should be, maybe you could point me toward something to read on the<br>
topic. Thanks.<br>
_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
</blockquote></div>