GNU bug report logs - #21718
24.5; Backgrounding emacsclient hangs emacs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Ed Avis <eda@HIDDEN>; dated Tue, 20 Oct 2015 11:16:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 21718 <at> debbugs.gnu.org:


Received: (at 21718) by debbugs.gnu.org; 21 Oct 2015 17:45:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 21 13:45:19 2015
Received: from localhost ([127.0.0.1]:59651 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZoxRu-0007rP-Ln
	for submit <at> debbugs.gnu.org; Wed, 21 Oct 2015 13:45:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58522)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1ZoxRb-0007bA-5T
 for 21718 <at> debbugs.gnu.org; Wed, 21 Oct 2015 13:45:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1ZoxRa-0002p6-2q
 for 21718 <at> debbugs.gnu.org; Wed, 21 Oct 2015 13:44:58 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42523)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1ZoxRX-0002op-Qp; Wed, 21 Oct 2015 13:44:55 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1ZoxRW-00021Z-2S; Wed, 21 Oct 2015 13:44:54 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Ed Avis <eda@HIDDEN>
Subject: Re: bug#21718: 24.5; Backgrounding emacsclient hangs emacs
References: <86fv15yeol.fsf@HIDDEN>
X-Spook: doctrine military Extreme weather NORAD Disaster
X-Ran: _y}Y}nYl>k{z0rj;0K-,e6:j,w~61BS-;&FgLqO|0=KGk]!pks?tOoQTs{56^9r00G")tp
X-Hue: white
X-Attribution: GM
Date: Wed, 21 Oct 2015 13:44:53 -0400
Message-ID: <wfeggoce0a.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 21718
Cc: 21718 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Ed Avis wrote:

> I am running emacs from a text ssh session.
>
> % emacs -Q
> M-x server-start RET
> M-x shell RET
> % touch foo
> % emacsclient foo
> C-x b RET                  (switch back to shell buffer)
> M-x comint-stop-subjob RET
>
> I expected this to background the emacsclient process within the shell
> window. 

It sends SIGSTOP.

I know this isn't very helpful, but the only thing I can think to say is
"don't do that". Either use the normal C-x C-f to open a file, or if you
must call emacsclient from within a shell inside Emacs (?!), use the
--no-wait option.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21718; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Oct 2015 11:15:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 20 07:15:14 2015
Received: from localhost ([127.0.0.1]:57467 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZoUsr-0003Om-Ah
	for submit <at> debbugs.gnu.org; Tue, 20 Oct 2015 07:15:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59046)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eda@HIDDEN>) id 1ZoUso-0003Od-EY
 for submit <at> debbugs.gnu.org; Tue, 20 Oct 2015 07:15:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eda@HIDDEN>) id 1ZoUsm-0001ww-Sx
 for submit <at> debbugs.gnu.org; Tue, 20 Oct 2015 07:15:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41568)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eda@HIDDEN>) id 1ZoUsm-0001ws-QA
 for submit <at> debbugs.gnu.org; Tue, 20 Oct 2015 07:15:08 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40758)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eda@HIDDEN>) id 1ZoUsh-0005hA-SS
 for bug-gnu-emacs@HIDDEN; Tue, 20 Oct 2015 07:15:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eda@HIDDEN>) id 1ZoUsc-0001rl-PT
 for bug-gnu-emacs@HIDDEN; Tue, 20 Oct 2015 07:15:03 -0400
Received: from mail1.bemta3.messagelabs.com ([195.245.230.168]:46519)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eda@HIDDEN>) id 1ZoUsc-0001rQ-Gc
 for bug-gnu-emacs@HIDDEN; Tue, 20 Oct 2015 07:14:58 -0400
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
 95/CD-31069-03226265; Tue, 20 Oct 2015 11:14:56 +0000
X-Env-Sender: eda@HIDDEN
X-Msg-Ref: server-12.tower-31.messagelabs.com!1445339695!17987396!1
X-Originating-IP: [80.169.169.167]
X-StarScan-Received: 
X-StarScan-Version: 6.13.16; banners=waniasset.com,-,-
X-VirusChecked: Checked
Received: (qmail 26342 invoked from network); 20 Oct 2015 11:14:56 -0000
Received: from unknown (HELO WCL-EXCHCAS02.wcl.local) (80.169.169.167)
 by server-12.tower-31.messagelabs.com with AES128-SHA encrypted SMTP;
 20 Oct 2015 11:14:56 -0000
Received: from wcl-linux05.wcl.local (149.85.127.181) by
 WCL-EXCHCAS02.wcl.local (149.85.127.102) with Microsoft SMTP Server (TLS) id
 14.3.123.3; Tue, 20 Oct 2015 12:14:55 +0100
From: Ed Avis <eda@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.5; Backgrounding emacsclient hangs emacs
Date: Tue, 20 Oct 2015 12:14:50 +0100
Message-ID: <86fv15yeol.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


I am running emacs from a text ssh session.

% emacs -Q
M-x server-start RET
M-x shell RET
% touch foo
% emacsclient foo
C-x b RET                  (switch back to shell buffer)
M-x comint-stop-subjob RET

I expected this to background the emacsclient process within the shell
window.  But it causes all of emacs to disappear from the screen, back
to the original shell prompt that launched emacs, where the emacs
process appears to have hung and can only be killed with C-c.



In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.6)
 of 2015-09-14 on buildvm-10.phx2.fedoraproject.org
Configured using:
 `configure --build=x86_64-redhat-linux-gnu
 --host=x86_64-redhat-linux-gnu --program-prefix=
 --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
 --libexecdir=/usr/libexec --localstatedir=/var
 --sharedstatedir=/var/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
 --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
 --with-gpm=no build_alias=x86_64-redhat-linux-gnu
 host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LC_COLLATE: C
  value of $LC_CTYPE: en_GB.UTF-8
  value of $LC_MESSAGES: en_GB.UTF-8
  value of $LC_MONETARY: en_GB.UTF-8
  value of $LC_NUMERIC: en_GB.UTF-8
  value of $LC_TIME: en_GB.UTF-8
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  show-paren-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading /usr/share/emacs/site-lisp/site-start.d/puppet-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...done
Loading compile...done
Loading /home/eda/lib/emacs/csharp-mode-0.8.5.el
lib/emacs/csharp-mode-0.8.5.el: `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [2 times]
lib/emacs/csharp-mode-0.8.5.el: (lambda (item) ...) quoted with ' rather than with #'
Done loading /home/eda/lib/emacs/csharp-mode-0.8.5.el
Loading log-edit...done
Loading term/xterm...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug sendmail xterm time-date paren
log-edit easy-mmode message format-spec rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util
add-log warnings server csharp-mode advice help-fns byte-opt bytecomp
byte-compile cl-extra cconv cc-langs cc-mode cc-fonts easymenu cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs zoom-frm
frame-cmds frame-fns cl-macs avoid cl gv cl-loaddefs cl-lib compile
shell pcomplete comint ring ansi-color tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 139426 4026)
 (symbols 48 22703 0)
 (miscs 40 90 93)
 (strings 32 24674 4900)
 (string-bytes 1 863595)
 (vectors 16 12515)
 (vector-slots 8 394759 2869)
 (floats 8 80 207)
 (intervals 56 226 0)
 (buffers 960 14)
 (heap 1024 40722 843))

Please ignore autogenerated disclaimer below this point.

This email is intended only for the person to whom it is addressed and may contain confidential information. Any retransmission, copying, disclosure or other use of, this information by persons other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material. This email is for information only and is not intended as an offer or solicitation for the purchase or sale of any financial instrument. Wadhwani Asset Management LLP is a Limited Liability Partnership registered in England (OC303168) with registered office at 40 Berkeley Square, 3rd Floor, London, W1J 5AL. It is authorised and regulated by the Financial Conduct Authority.




Acknowledgement sent to Ed Avis <eda@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21718; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 21 Oct 2015 17:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.