From 9255c548a49004896c181ad65bab230267a2f772 Mon Sep 17 00:00:00 2001 From: Johannes Dewender Date: Fri, 13 Nov 2009 21:28:23 +0100 Subject: [PATCH] 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 Tested-by: Johannes Dewender --- 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 -- 1.6.5.2