"sudo emacs" cannot be backgrounded afterward by shell

Bug #1223291 reported by Daniel Barrett on 2013-09-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs23 (Ubuntu)
Undecided
Unassigned

Bug Description

When I run:

  $ sudo emacs /etc/myfile

and later try to background it by typing ^Z in the invoking shell, the keystroke is ignored and merely echoes to the screen as "^Z".

This did NOT happen in Ubuntu 10.04 LTS.

This does NOT happen for any of the following commands:

  $ sudo emacs -nw /etc/myfile (which runs emacs in the existing gnome-terminal window)
  $ sudo gnome-terminal (a different program that also opens a window)

I realize that there are workarounds, like manually sending the suspend signal:

  $ sudo kill -TSTP <pid of emacs>

but something special and new (and unwanted) is happening with emacs here.

Other users have experienced this problem on other distros:
http://unix.stackexchange.com/questions/81482/how-to-send-to-background-a-running-process-started-with-sudo

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: emacs23 23.4+1-4ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
Uname: Linux 3.8.0-30-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Tue Sep 10 06:57:04 2013
InstallationDate: Installed on 2013-08-31 (9 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: emacs23
UpgradeStatus: No upgrade log present (probably fresh install)

Daniel Barrett (dbarrett-m) wrote :
description: updated
Daniel Barrett (dbarrett-m) wrote :

Confirming that this is still broken in Saucy Salamander.

Daniel Barrett (dbarrett-m) wrote :

This appears to be fixed as of Ubuntu 15.10.

Changed in emacs23 (Ubuntu):
assignee: nobody → Daniel Barrett (dbarrett-m)
status: New → In Progress
status: In Progress → New
assignee: Daniel Barrett (dbarrett-m) → nobody
Daniel Barrett (dbarrett-m) wrote :

I would close this if I could.

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

Other bug subscribers