diff options
author | Johannes Dewender <xorg@JonnyJD.net> | 2009-11-13 21:28:23 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2010-03-16 08:42:51 -0700 |
commit | 0f18bdfa7fcfe100e487f4c9f91ae37a125ef0f0 (patch) | |
tree | 9146d0551dcdc5155c026078f290571cd998056b /config/Xstartup.cpp | |
parent | c9cdd56df50f280e90ba95cfa933222f94ad2677 (diff) |
Bug #25066: exec sessreg
Sessreg saves the pid of the calling process in utmp.
If this process is terminated the session is implicitly deleted.
Xstartup is called and the process id is gone right when
the script is done so the session is closed right away.
Using "exec" will save the pid of the master process of this login.
Signed-off-by: Johannes Dewender <xorg@JonnyJD.net>
Tested-by: Johannes Dewender <xorg@JonnyJD.net>
Acked-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'config/Xstartup.cpp')
-rw-r--r-- | config/Xstartup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/Xstartup.cpp b/config/Xstartup.cpp index d837359..001cef2 100644 --- a/config/Xstartup.cpp +++ b/config/Xstartup.cpp @@ -1,5 +1,5 @@ XCOMM!/bin/sh XCOMM Register a login (derived from GiveConsole as follows:) XCOMM -BINDIR/sessreg -a -w WTMP_FILE -u UTMP_FILE \ +exec BINDIR/sessreg -a -w WTMP_FILE -u UTMP_FILE \ -x XDMCONFIGDIR/Xservers -l $DISPLAY -h "" $USER |