60 secs logout delay when running emacs: Why ?
Thiago Macieira
thiago at kde.org
Wed Dec 16 14:30:30 PST 2009
Em Quarta-feira 16. Dezembro 2009, às 21.21.52, Gerd Bavendiek escreveu:
> 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 ?
I think you're dumping the wrong protocol.
X logout is announced to the applications via XSM, not via D-Bus.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20091216/e831e828/attachment.pgp
More information about the dbus
mailing list