[15003] in Athena Bugs
Re: sun 8.0K: Xsession? bugme? xdm?
daemon@ATHENA.MIT.EDU (Craig Fields)
Thu Mar 13 13:15:11 1997
Date: Thu, 13 Mar 1997 18:15:08 GMT
From: Craig Fields <cfields@MIT.EDU>
To: othomas@MIT.EDU
Cc: bugs@MIT.EDU
What an interesting bug!
It probably makes the most sense to consider it a bug in Xsession:
status=$?
if [ $status != 0 ]; then
echo ERROR:
echo "Xsession returned non-zero status."
.
.
.
sleep 10
exit $status
fi
It simply passes the exit status from the user's session up to dm; dm
interprets this status as coming from xlogin, and acts accordingly.
By coincidence, bugme exits status 3 when it can't exec the specified
user session, which happens to be what xlogin exits with when the user
has hit ^P to do a console login.
So Xsession shouldn't be exiting $status; I should probably have a
better look at dm to be sure how it should be exiting.
Craig