GNU bug report logs - #16019
Undocumented interaction with descendants of process created by Emacs (very annoying)

Previous Next

Package: emacs;

Reported by: Teika Kazura <teika <at> gmx.com>

Date: Sun, 1 Dec 2013 08:34:02 UTC

Severity: normal

Tags: confirmed

Merged with 15695, 21617, 21866

Found in versions 24.3, 25.2

Full log


Message #11 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: 15695 <at> debbugs.gnu.org
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Subject: Re: bug#15695: 24.3;
 multiple async shell commands at once run randomly
Date: Mon, 02 Apr 2018 19:49:27 -0400
merge 15695 16019
quit

> If I set process-connection-type to nil, then I get expected results

> This problem is also talked about in [1] and [2].
>
> [1]: http://nullprogram.com/blog/2018/01/17/
> [2]: http://nullprogram.com/blog/2014/02/06/#pseudo-terminals

Actually, I don't think this bug is a problem of Emacs losing data after
all, it's just that the shell does the 'echo baz' and then usually exits
before the other echo commands get to run (when running with a pty,
Emacs sends SIGHUP to all child process in the terminal).  If I add a ";
wait" to the shell command, then I get

"baz\nbar\nfoo\n": 374
"baz\nfoo\nbar\n": 428
"foo\nbaz\nbar\n": 17
"bar\nfoo\nbaz\n": 1

which is as expected.  I'm merging with #16019 which is about Emacs
sending SIGHUP to all child processes of a pty subprocess.





This bug report was last modified 7 years and 73 days ago.

Previous Next


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