60 secs logout delay when running emacs: Why ?

Gerd Bavendiek gerd.bavendiek at gmx.net
Wed Dec 16 12:21:52 PST 2009


Hi,

running Xubuntu Karmic and using Emacs, I'm always wondering about a
significant delay after clicking logout. Basically after having
clicked logout 60 secs nothing happens until the session is finally
closed.

If I first close Emacs and then click logout, the session is closed
immediately. So the delay really seems to be linked to emacs. There is
no logout dialog AFAIK. Running emacs without my init-files did not
change anything.

This delay is a bit irritating, but most of the time not a real
problem. It is possible to shorten the delay by "clicking
around". Typically switching to the workspace emacs is running in
makes the session terminate immediately. Occasionally clicking around
does not terminate the session and I have to wait.

So I just wanted to know which component causes the delay.

I straced emacs. After logout he ist happily running for about 60
secs. Then he gets SIGTERM 4 times.

I ran dbus-monitor > file and got an empty file (output buffering). I
compiled dbus 1.3.1 and ran it like so:

./dbus-monitor | perl -ne 'print scalar localtime(), $_' > file

Now I do see a lot of activities after clicking logout, then exactly
60 secs nothing and another bulk of messages. To be honest: This is
beyond my skills, I cannot interpret this output (285 lines).

I really would appreciate if somebody could push me into the right
direction. Is it a bug, a misconfiguration or works a designed ?
emacs or xfce4-session ?

Thanks

Gerd



More information about the dbus mailing list