Re: PostSession script support fades out from 2.4 to 2.6?


It is a known bug that the PostSession script doesn't get run properly
on exit in some situations.

Refer to bugzilla bug 152906:

I believe in the situation you describe, the gdm_slave_xioerror_handler
will get called to process the signal and this should notice that the
session was started and call term_session_stop_and_quit, which will call

I suspect this might not be working due to the setjmp/longjmp logic
because calling longjmp will return the state of the program to when
setjmp was called, so the state of the global variables may get lost
causing gdm to "forget" it has a running session and causing the
PostSession to not get called.  You can refer to the bug report
mentioned above for more information.

I would add some gdm_debug() calls to the code and verify that this
is the problem.  If so, we could rip out the setjmp/longjmp code
and fix the code so it does the same thing without using jumping.
I suspect that this will fix the problem.  Could you help with


I'm a newbie to this list... be gentle ;-)

I'm curious about the following behavioral change in gdm:

2.4.1 (rh9): User hits ctl-alt-backspace and the PostSession scriptlets are run as the session terminates.

2.6.0 (rhel4): PostSession scriptlets are never run unless the user does a clean logout.

Based upon debug output to syslog (2.6 version), it would appear that any keystroke that maps to Terminate ends up as a call to gdm_slave_quick_exit instead of gdm_slave_session_stop.

This behavior seems contrary to the current documentation and to past behavior. Is it a bug introduced by the new server management methods, or am I missing something?

In practice, I've found ctl-alt-backspace is a more common way for a normal user to exit their session than to use any logout widget. It seems wrong to me that ctl-alt-backspace effectively circumvents PostSession.

Is there a gdm.conf way to get gdm 2.6 (or later) to go ahead and process the PostSession directory upon terrmination?

To unsubscribe, e-mail: gdm-unsubscribe sunsite dk
For additional commands, e-mail: gdm-help sunsite dk

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]