emacs daemon inhibits logout

Bug #778205 reported by Anders Kaseorg
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
emacs23 (Ubuntu)
Confirmed
Low
Unassigned
gnome-session (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: emacs23

After using emacs in daemon mode through emacsclient -c, I get an extra prompt and long delays on logout, because GNOME decides that the running emacs daemon is “not responding”.

This can be reproduced by running
  emacsclient -a "" -c whatever
then closing the window and logging out. A screenshot of the resulting dialog box is attached.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: emacs23 23.2+1-7ubuntu2
ProcVersionSignature: Ubuntu 2.6.39-0.5-generic 2.6.39-rc5
Uname: Linux 2.6.39-0-generic x86_64
NonfreeKernelModules: openafs
Architecture: amd64
Date: Thu May 5 19:30:42 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: emacs23
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Anders Kaseorg (andersk) wrote :
Revision history for this message
Klaus Reichl (klaus-reichl) wrote :

Hi Anders,

This has been a bug for long, good that you reported, I was always to lazy.
If there is some time I'll debug this.

Klaus

Changed in gnome-session (Ubuntu):
status: New → Invalid
Revision history for this message
Dan Vokt (dv+launchpad) wrote :

Why was this marked invalid?

I am also having this issue.

I am running emacsclient version 23.1 under ubuntu 10.04 LTS up to date as of 201107241148

Any workarounds?

Revision history for this message
Reinhard Tartler (siretart) wrote :

From personal experience I can confirm this issue

Changed in emacs23 (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Ryan Thompson (rct86) wrote :

This problem is worse in GNOME 3, where there is no way to skip the 60-second delay on log out (except by killing the Emacs daemon, which kind of defeats the point of having a daemon).

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 778205] Re: emacs daemon inhibits logout

Isn't there some dbus signal emitted when the users request
logout/shutdown/reboot? In that case, you could probably write some
elisp code that reacts to that signal and terminates the daemon
automatically.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

I'm marking this as a duplicate of a more recent bug report, to see if it gets some attention.

Marked as duplicate of bug 1079820

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.