X-Loop: help-debbugs@HIDDEN Subject: bug#15695: 24.3; multiple async shell commands at once run randomly Resent-From: Nicolas Richard <theonewiththeevillook@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 23 Oct 2013 21:16:01 +0000 Resent-Message-ID: <handler.15695.B.138256295013682 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 15695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 15695 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.138256295013682 (code B ref -1); Wed, 23 Oct 2013 21:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2013 21:15:50 +0000 Received: from localhost ([127.0.0.1]:38929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VZ5mO-0003YY-01 for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 17:15:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40683) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <theonewiththeevillook@HIDDEN>) id 1VZ5mJ-0003YJ-Ri for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 17:15:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <theonewiththeevillook@HIDDEN>) id 1VZ5m9-00068R-86 for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 17:15:38 -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,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <theonewiththeevillook@HIDDEN>) id 1VZ5m8-00068N-Qg for submit <at> debbugs.gnu.org; Wed, 23 Oct 2013 17:15:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <theonewiththeevillook@HIDDEN>) id 1VZ5m3-0007ex-LR for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2013 17:15:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <theonewiththeevillook@HIDDEN>) id 1VZ5ly-0005zE-Ji for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2013 17:15:27 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:1620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <theonewiththeevillook@HIDDEN>) id 1VZ5ly-0005ud-1z for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2013 17:15:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQQAPM6aFKkD4Nx/2dsb2JhbABZgz+qSwJBgW8BgziOdYFEdIJ1IAEnJA8lAXoEh1UBEg2ZW49ag3uDQwGKQoVJgiOGGRCBE0WEEgOUKoNfgS+EeItggyY6gTU Received: from geodiff-mac3.ulb.ac.be (HELO geodiff-mac3) ([164.15.131.113]) by smtp.ulb.ac.be with ESMTP; 23 Oct 2013 23:15:19 +0200 From: Nicolas Richard <theonewiththeevillook@HIDDEN> Date: Wed, 23 Oct 2013 23:15:53 +0200 Message-ID: <877gd3ofhy.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: -5.0 (-----) 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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://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: <http://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 (-----) Hi, Trying to debug a problem when pressing `&' in dired-mode with multiple files marked, I found that running the following $ emacs -q --eval '(shell-command "echo foo&echo bar&echo baz&")' shows a *Async Shell Command* buffer with apparent random content. I ran elisp which does something like the above 820 times. Here's what happened (formatted as "output: number of times it appeared") : "baz\nfoo\n": 236 "baz\nfoo\nbar\n": 73 "baz\n": 469 "baz\nbar\n": 29 "bar\nbaz\n": 5 "baz\nbar\nfoo\n": 1 "foo\nbaz\n": 6 "foo\nbar\nbaz\n": 1 which looks like random to me. What I expected is to only see the lines with all of "foo" "baz" and "bar" (in any order). I have to say that it's not only a problem of output not seen in emacs : replacing "echo" by "touch" like so: $ rm -f foo bar baz; emacs -q --batch --eval '(shell-command "touch foo&touch bar&touch baz&")' --eval '(sit-for 1)'; ls -la usually gives me only one or two files, instead of three (in an otherwise empty dir) Browsing through other bugs, I spotted the followings bug report which might be related: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=421 I run emacs --version : GNU Emacs 24.3.1 and GNU bash, version 4.2.45(1)-release (i686-pc-linux-gnu) Here's the elisp used for the above statistics -- it uses "start-process" directly instead of shell-command. #+BEGIN_SRC emacs-lisp (defvar statistics nil "Hash table for keeping statistics") (defun yf/keep-stats (process change) "Used as sentinel" (with-current-buffer (process-buffer process) (if (equal change "finished\n") (puthash (buffer-string) (1+ (or (gethash (buffer-string) statistics) 0)) statistics) (error "Unknown change for process %s: %s" process change)))) (defun yf/pp-hash-table (hashtable) "Pretty print hash table" (let ((res)) (maphash (lambda (k v) (setq res (concat res (yf/pp-hash--line k v)))) hashtable) (or res ""))) (defun yf/pp-hash--line (key value) "Pretty print one hash line" (format "%s: %s\n" (pp key) (pp value))) (progn (let ((n 820)) (setq statistics (make-hash-table :test 'equal)) (dotimes (i n) (let* ((buffername (concat "Shell-test" (number-to-string i))) (buffer (get-buffer-create buffername))) (with-current-buffer buffer (erase-buffer)) (set-process-sentinel (start-process buffername buffer shell-file-name shell-command-switch "echo foo&echo bar&echo baz") #'yf/keep-stats))) t) (sit-for 2) (insert (yf/pp-hash-table statistics))) #+END_SRC In GNU Emacs 24.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-10-14 on geodiff-mac3 Windowing system distributor `The X.Org Foundation', version 11.0.11304000 Configured using: `configure '--with-x-toolkit=lucid' '--enable-checking'' Important settings: value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: yas-global-mode: t TeX-PDF-mode: t diff-auto-refine-mode: t projectile-global-mode: t rcirc-track-minor-mode: t desktop-save-mode: t dynamic-completion-mode: t shell-dirtrack-mode: t show-paren-mode: t recentf-mode: t winner-mode: t tooltip-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC C-e C-d C-e SPC ? C-n C-SPC <C-end> C-w <return> <backspace> <backspace> SPC I t ' s SPC b u i l t SPC <backspace> - i n SPC f o r SPC m e SPC C-u M-x e m a c s - v e r s i o n <return> C-x C-x M-f M-f M-f M-f M-f M-f M-f M-f M-f C-f C-f C-M-k SPC t o o C-k . <up> <C-end> <up> <end> <C-left> <left> SPC o n M-q <C-end> <return> <return> N i <backspace> <backspace> N i c o . <return> <up> - - SPC <return> <end> <C-end> <up> <up> <end> <up> <up> <up> <up> <up> <up> <up> <down> <home> C-SPC <C-home> <C-down> <C-down> C-w <C-end> C-c C-c / N q g <C-home> <return> <return> n n n SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC n n n n k q <return> q C-n C-n C-n C-n C-n C-n <return> c C-g C-n <return> F <C-end> <up> <up> <up> C-SPC <C-end> C-w <return> D i d SPC y o u SPC t r y SPC b y SPC r e c o m p i l i n g SPC r c i r c . e l SPC ? M-b M-b M-x f i n d SPC l i b <tab> <return> <return> C-x K M-b M-b M-d C-d C-e C-n C-p C-n C-c C-k y e s <return> C-p <return> c y g <return> <return> q <return> n n n n n C-p <return> ^ q g <return> <return> , c y q g C-g q y C-c C-SPC ESC [ > 1 ; 3 2 0 1 ; 0 c ESC x r e p o r t SPC e m TAB SPC b u DEL DEL TAB RET Recent messages: Are you sure you want to quit reading news? (y or n) y Saving file /home/youngfrog/.newsrc... Wrote /home/youngfrog/.newsrc Saving /home/youngfrog/.newsrc.eld... Saving file /home/youngfrog/.newsrc.eld... Wrote /home/youngfrog/.newsrc.eld Saving /home/youngfrog/.newsrc.eld...done Cleaning up the recentf list...done (0 removed) Contacting host: www.emacswiki.org:80 [5 times] When done with this frame, type C-x 5 0 Load-path shadows: /home/youngfrog/.emacs.d/elpa/ess-20130912.915/.dir-locals hides /home/youngfrog/.emacs.d/elpa/pkg-info-20130817.2334/.dir-locals ~/.emacs.d/lisp/asy-mode hides /usr/local/texlive/2012/texmf/asymptote/asy-mode /home/youngfrog/.emacs.d/elpa/json-1.2/json hides /usr/local/share/emacs/24.3/lisp/json ~/sources/org-mode/lisp/org-footnote hides /usr/local/share/emacs/24.3/lisp/org/org-footnote ~/sources/org-mode/lisp/ob-io hides /usr/local/share/emacs/24.3/lisp/org/ob-io ~/sources/org-mode/lisp/ob-sqlite hides /usr/local/share/emacs/24.3/lisp/org/ob-sqlite ~/sources/org-mode/lisp/ob-ditaa hides /usr/local/share/emacs/24.3/lisp/org/ob-ditaa ~/sources/org-mode/lisp/ob-ocaml hides /usr/local/share/emacs/24.3/lisp/org/ob-ocaml ~/sources/org-mode/lisp/org-irc hides /usr/local/share/emacs/24.3/lisp/org/org-irc ~/sources/org-mode/lisp/ob-eval hides /usr/local/share/emacs/24.3/lisp/org/ob-eval ~/sources/org-mode/lisp/ob-scheme hides /usr/local/share/emacs/24.3/lisp/org/ob-scheme ~/sources/org-mode/lisp/org-capture hides /usr/local/share/emacs/24.3/lisp/org/org-capture ~/sources/org-mode/lisp/org-table hides /usr/local/share/emacs/24.3/lisp/org/org-table ~/sources/org-mode/lisp/ob-exp hides /usr/local/share/emacs/24.3/lisp/org/ob-exp ~/sources/org-mode/lisp/org-eshell hides /usr/local/share/emacs/24.3/lisp/org/org-eshell ~/sources/org-mode/lisp/org-inlinetask hides /usr/local/share/emacs/24.3/lisp/org/org-inlinetask ~/sources/org-mode/lisp/ob-sql hides /usr/local/share/emacs/24.3/lisp/org/ob-sql ~/sources/org-mode/lisp/ob-emacs-lisp hides /usr/local/share/emacs/24.3/lisp/org/ob-emacs-lisp ~/sources/org-mode/contrib/lisp/org-vm hides /usr/local/share/emacs/24.3/lisp/org/org-vm ~/sources/org-mode/lisp/org-list hides /usr/local/share/emacs/24.3/lisp/org/org-list ~/sources/org-mode/lisp/org-colview hides /usr/local/share/emacs/24.3/lisp/org/org-colview ~/sources/org-mode/lisp/ob-perl hides /usr/local/share/emacs/24.3/lisp/org/ob-perl ~/sources/org-mode/lisp/org-agenda hides /usr/local/share/emacs/24.3/lisp/org/org-agenda ~/sources/org-mode/lisp/ob-keys hides /usr/local/share/emacs/24.3/lisp/org/ob-keys ~/sources/org-mode/lisp/org-element hides /usr/local/share/emacs/24.3/lisp/org/org-element ~/sources/org-mode/lisp/ob-table hides /usr/local/share/emacs/24.3/lisp/org/ob-table ~/sources/org-mode/lisp/org-compat hides /usr/local/share/emacs/24.3/lisp/org/org-compat ~/sources/org-mode/lisp/org-mobile hides /usr/local/share/emacs/24.3/lisp/org/org-mobile ~/sources/org-mode/lisp/ob-comint hides /usr/local/share/emacs/24.3/lisp/org/ob-comint ~/sources/org-mode/lisp/org-src hides /usr/local/share/emacs/24.3/lisp/org/org-src ~/sources/org-mode/lisp/org-crypt hides /usr/local/share/emacs/24.3/lisp/org/org-crypt ~/sources/org-mode/lisp/org-info hides /usr/local/share/emacs/24.3/lisp/org/org-info ~/sources/org-mode/lisp/ob-maxima hides /usr/local/share/emacs/24.3/lisp/org/ob-maxima ~/sources/org-mode/lisp/org-ctags hides /usr/local/share/emacs/24.3/lisp/org/org-ctags ~/sources/org-mode/lisp/org-habit hides /usr/local/share/emacs/24.3/lisp/org/org-habit ~/sources/org-mode/lisp/ob hides /usr/local/share/emacs/24.3/lisp/org/ob ~/sources/org-mode/lisp/org-datetree hides /usr/local/share/emacs/24.3/lisp/org/org-datetree ~/sources/org-mode/lisp/org-clock hides /usr/local/share/emacs/24.3/lisp/org/org-clock ~/sources/org-mode/lisp/org-bbdb hides /usr/local/share/emacs/24.3/lisp/org/org-bbdb ~/sources/org-mode/lisp/ob-fortran hides /usr/local/share/emacs/24.3/lisp/org/ob-fortran ~/sources/org-mode/lisp/ob-picolisp hides /usr/local/share/emacs/24.3/lisp/org/ob-picolisp ~/sources/org-mode/contrib/lisp/org-wl hides /usr/local/share/emacs/24.3/lisp/org/org-wl ~/sources/org-mode/lisp/org-gnus hides /usr/local/share/emacs/24.3/lisp/org/org-gnus ~/sources/org-mode/lisp/ob-clojure hides /usr/local/share/emacs/24.3/lisp/org/ob-clojure ~/sources/org-mode/contrib/lisp/org-mew hides /usr/local/share/emacs/24.3/lisp/org/org-mew ~/sources/org-mode/lisp/org-attach hides /usr/local/share/emacs/24.3/lisp/org/org-attach ~/sources/org-mode/lisp/ob-tangle hides /usr/local/share/emacs/24.3/lisp/org/ob-tangle ~/sources/org-mode/lisp/org-protocol hides /usr/local/share/emacs/24.3/lisp/org/org-protocol ~/sources/org-mode/lisp/org-indent hides /usr/local/share/emacs/24.3/lisp/org/org-indent ~/sources/org-mode/lisp/org-install hides /usr/local/share/emacs/24.3/lisp/org/org-install ~/sources/org-mode/lisp/ob-org hides /usr/local/share/emacs/24.3/lisp/org/ob-org ~/sources/org-mode/lisp/org-docview hides /usr/local/share/emacs/24.3/lisp/org/org-docview ~/sources/org-mode/lisp/org-rmail hides /usr/local/share/emacs/24.3/lisp/org/org-rmail ~/sources/org-mode/lisp/ob-mscgen hides /usr/local/share/emacs/24.3/lisp/org/ob-mscgen ~/sources/org-mode/lisp/org-plot hides /usr/local/share/emacs/24.3/lisp/org/org-plot ~/sources/org-mode/lisp/ob-haskell hides /usr/local/share/emacs/24.3/lisp/org/ob-haskell ~/sources/org-mode/lisp/org-timer hides /usr/local/share/emacs/24.3/lisp/org/org-timer ~/sources/org-mode/lisp/ob-ledger hides /usr/local/share/emacs/24.3/lisp/org/ob-ledger ~/sources/org-mode/lisp/org-mhe hides /usr/local/share/emacs/24.3/lisp/org/org-mhe ~/sources/org-mode/lisp/org-entities hides /usr/local/share/emacs/24.3/lisp/org/org-entities ~/sources/org-mode/lisp/ob-C hides /usr/local/share/emacs/24.3/lisp/org/ob-C ~/sources/org-mode/lisp/org-mouse hides /usr/local/share/emacs/24.3/lisp/org/org-mouse ~/sources/org-mode/lisp/ob-lisp hides /usr/local/share/emacs/24.3/lisp/org/ob-lisp ~/sources/org-mode/lisp/org-archive hides /usr/local/share/emacs/24.3/lisp/org/org-archive ~/sources/org-mode/lisp/ob-python hides /usr/local/share/emacs/24.3/lisp/org/ob-python ~/sources/org-mode/lisp/ob-ref hides /usr/local/share/emacs/24.3/lisp/org/ob-ref ~/sources/org-mode/lisp/ob-gnuplot hides /usr/local/share/emacs/24.3/lisp/org/ob-gnuplot ~/sources/org-mode/lisp/ob-sass hides /usr/local/share/emacs/24.3/lisp/org/ob-sass ~/sources/org-mode/lisp/ob-sh hides /usr/local/share/emacs/24.3/lisp/org/ob-sh ~/sources/org-mode/lisp/ob-octave hides /usr/local/share/emacs/24.3/lisp/org/ob-octave ~/sources/org-mode/lisp/org-pcomplete hides /usr/local/share/emacs/24.3/lisp/org/org-pcomplete ~/sources/org-mode/lisp/org-w3m hides /usr/local/share/emacs/24.3/lisp/org/org-w3m ~/sources/org-mode/lisp/org-feed hides /usr/local/share/emacs/24.3/lisp/org/org-feed ~/sources/org-mode/lisp/ob-calc hides /usr/local/share/emacs/24.3/lisp/org/ob-calc ~/sources/org-mode/lisp/ob-shen hides /usr/local/share/emacs/24.3/lisp/org/ob-shen ~/sources/org-mode/lisp/ob-plantuml hides /usr/local/share/emacs/24.3/lisp/org/ob-plantuml ~/sources/org-mode/lisp/org-version hides /usr/local/share/emacs/24.3/lisp/org/org-version ~/sources/org-mode/lisp/ob-R hides /usr/local/share/emacs/24.3/lisp/org/ob-R ~/sources/org-mode/lisp/ob-asymptote hides /usr/local/share/emacs/24.3/lisp/org/ob-asymptote ~/sources/org-mode/lisp/ob-latex hides /usr/local/share/emacs/24.3/lisp/org/ob-latex ~/sources/org-mode/lisp/ob-dot hides /usr/local/share/emacs/24.3/lisp/org/ob-dot ~/sources/org-mode/lisp/ob-matlab hides /usr/local/share/emacs/24.3/lisp/org/ob-matlab ~/sources/org-mode/lisp/ob-ruby hides /usr/local/share/emacs/24.3/lisp/org/ob-ruby ~/sources/org-mode/lisp/org-id hides /usr/local/share/emacs/24.3/lisp/org/org-id ~/sources/org-mode/lisp/ob-java hides /usr/local/share/emacs/24.3/lisp/org/ob-java ~/sources/org-mode/lisp/org-faces hides /usr/local/share/emacs/24.3/lisp/org/org-faces ~/sources/org-mode/lisp/ob-css hides /usr/local/share/emacs/24.3/lisp/org/ob-css ~/sources/org-mode/lisp/org-bibtex hides /usr/local/share/emacs/24.3/lisp/org/org-bibtex ~/sources/org-mode/lisp/ob-screen hides /usr/local/share/emacs/24.3/lisp/org/ob-screen ~/sources/org-mode/lisp/org hides /usr/local/share/emacs/24.3/lisp/org/org ~/sources/org-mode/lisp/ob-scala hides /usr/local/share/emacs/24.3/lisp/org/ob-scala ~/sources/org-mode/lisp/ob-lob hides /usr/local/share/emacs/24.3/lisp/org/ob-lob ~/sources/org-mode/lisp/org-macs hides /usr/local/share/emacs/24.3/lisp/org/org-macs ~/sources/org-mode/lisp/ob-awk hides /usr/local/share/emacs/24.3/lisp/org/ob-awk ~/sources/org-mode/lisp/ob-lilypond hides /usr/local/share/emacs/24.3/lisp/org/ob-lilypond ~/sources/org-mode/lisp/ob-js hides /usr/local/share/emacs/24.3/lisp/org/ob-js ~/sources/org-mode/lisp/org-loaddefs hides /usr/local/share/emacs/24.3/lisp/org/org-loaddefs /home/youngfrog/.emacs.d/elpa/ess-20130912.915/.dir-locals hides /usr/local/share/emacs/24.3/lisp/gnus/.dir-locals Features: (shadow emacsbug org-datetree uudecode calc-stuff calccomp calc-forms calc-help calc-undo calc-alg calc-yank clippy pos-tip clippy-autoloads pos-tip-autoloads skeleton helm-sys helm-utils helm haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-align-imports flymake files-x ruler-mode hl-line hexl eldoc table loadhist calc-arith calc-math calc-ext calc-misc calc-menu calc-aent calc calc-loaddefs calc-macs ox-beamer ox-latex ox-icalendar ox-html ox-ascii ox-publish ox dmassign hi-lock face-remap sgml-mode htmlize org-feed cal-move vc-git org-attach org-id org-colview cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs diary-lib diary-loaddefs cal-iso finder yasnippet nlinum linum tutorial smerge-mode url-handlers org-download cus-edit image-file sh-script smie executable newst-backend enriched gnus-draft pcmpl-unix tex-buf bookmark tramp-cmds mule-util org-element org-indent top-mode async-file dired-aux async async-autoloads ispell tabify man js2-mode js imenu json-mode json-mode-autoloads debbugs-gnu debbugs soap-client find-dired descr-text two-column iso-transl smartparens mailalias smtpmail sendmail boxquote conf-mode cus-start cus-load nyan-mode nyan-mode-autoloads tar-mode lorem-ipsum-autoloads autoload lisp-mnt ibuf-ext ibuffer url-queue canlock fic-ext-mode cc-langs asy-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs edebug quail texmathp timezone url-http url-gw url-cache url-auth apropos rect google-translate json reftex-dcr reftex-auc reftex reftex-vars org-rmail org-mhe org-irc org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m org-table font-latex latex tex-style tex dbus crm dabbrev misearch multi-isearch pp shr-color color shr browse-url sort gnus-cite flow-fill mm-archive mail-extr gnus-async gnus-bcklg qp gnus-ml nndraft nnmh gnutls nnfolder parse-time netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache time-stamp add-log view help-mode debug magit-cherry magit-bisect magit-key-mode magit magit-version diff-mode git-rebase-mode rx git-commit-mode magit-compat tramp-cache tramp-sh tramp tramp-compat tramp-loaddefs paredit hideshow ack-and-a-half-autoloads ampc-autoloads auto-dim-other-buffers-autoloads boxquote-autoloads circe-autoloads color-theme-solarized-autoloads color-theme-autoloads crosshairs-autoloads col-highlight-autoloads csv-mode-autoloads csv-nav-autoloads debbugs-autoloads dictionary-autoloads dropbox-autoloads dtrt-indent-autoloads eimp-autoloads elnode-autoloads db-autoloads creole-autoloads elpy-autoloads auto-complete-autoloads fakir-autoloads fic-ext-mode-autoloads find-file-in-project-autoloads flx-ido-autoloads flx-autoloads fuzzy-autoloads gist-autoloads gh-autoloads git-commit-mode-autoloads git-rebase-mode-autoloads golden-ratio-autoloads google-translate-autoloads hackernews-autoloads haskell-mode-autoloads helm-projectile-autoloads helm-autoloads highlight-indentation-autoloads hl-line+-autoloads idomenu-autoloads iedit-autoloads jabber-autoloads js2-mode-autoloads json-autoloads kv-autoloads lcs-autoloads litable-autoloads log4j-mode-autoloads logito-autoloads lua-mode-autoloads lui-autoloads lusty-explorer-autoloads mark-tools-autoloads memory-usage-autoloads minimap-autoloads mo-git-blame-autoloads multifiles-autoloads multiple-cursors-autoloads mwe-log-commands-autoloads nlinum-autoloads noflet-autoloads nose-autoloads oauth-autoloads org-email-autoloads paredit-autoloads pastebin-autoloads pcache-autoloads pcsv-autoloads popup-autoloads powerline-autoloads powerline powerline-separators powerline-themes pretty-mode-autoloads projectile grep compile dash s thingatpt projectile-autoloads pkg-info-autoloads pymacs-autoloads python-mode-autoloads pyvirtualenv-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads rebox2-autoloads request-autoloads s-autoloads scala-mode-autoloads shell-switcher-autoloads sicp-autoloads slime-autoloads smartparens-autoloads dash-autoloads finder-inf smex-autoloads sr-speedbar-autoloads switch-window-autoloads top-mode-autoloads tracking-autoloads shorten-autoloads typing-autoloads undo-tree-autoloads use-package-autoloads diminish-autoloads bind-key-autoloads virtualenv-autoloads vline-autoloads w3-autoloads web-autoloads window-number-autoloads workspaces-autoloads wtf-autoloads yasnippet-autoloads zen-and-art-theme-autoloads package disp-table network-stream starttls rcirc-color rcirc twittering-mode epa derived epg tls url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util xml desktop yf/makeadefun completion pcase ob-R ob-sh shell windmove latexenc paren doc-view jka-compr image-mode uniquify recentf tree-widget org-contacts org-capture org-agenda gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message cl-macs gv rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader mail-utils wid-edit cl find-lisp dired org-inlinetask org warnings org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ob-core ob-eval org-compat org-macs format-spec find-func cal-menu calendar cal-loaddefs time ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util time-date mm-util mail-prsvr password-cache url-vars winner ring edmacro kmacro magit-autoloads two-mode-mode tex-site auto-loads org-loaddefs ido-hacks advice help-fns cl-lib advice-preload easy-mmode ido info easymenu server tooltip 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 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 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 dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs)
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Nicolas Richard <theonewiththeevillook@HIDDEN> Subject: bug#15695: Acknowledgement (24.3; multiple async shell commands at once run randomly) Message-ID: <handler.15695.B.138256295013682.ack <at> debbugs.gnu.org> References: <877gd3ofhy.fsf@HIDDEN> X-Gnu-PR-Message: ack 15695 X-Gnu-PR-Package: emacs Reply-To: 15695 <at> debbugs.gnu.org Date: Wed, 23 Oct 2013 21:16:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 15695 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 15695: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15695 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#15695: 24.3; multiple async shell commands at once run randomly Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 24 Oct 2013 07:08:01 +0000 Resent-Message-ID: <handler.15695.B15695.13825984326113 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 15695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nicolas Richard <theonewiththeevillook@HIDDEN> Cc: 15695 <at> debbugs.gnu.org Received: via spool by 15695-submit <at> debbugs.gnu.org id=B15695.13825984326113 (code B ref 15695); Thu, 24 Oct 2013 07:08:01 +0000 Received: (at 15695) by debbugs.gnu.org; 24 Oct 2013 07:07:12 +0000 Received: from localhost ([127.0.0.1]:40032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VZF0h-0001aX-Sf for submit <at> debbugs.gnu.org; Thu, 24 Oct 2013 03:07:12 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45892 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <rgm@HIDDEN>) id 1VZF0d-0001aK-NA for 15695 <at> debbugs.gnu.org; Thu, 24 Oct 2013 03:07:08 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1VZF0c-00039F-MW; Thu, 24 Oct 2013 03:07:06 -0400 From: Glenn Morris <rgm@HIDDEN> References: <877gd3ofhy.fsf@HIDDEN> X-Spook: security csim passwd UFO e-bomb Kosovo Croatian blackjack X-Ran: nbG\&9`.BpJ>/\9&KaL^iJrRT>[ieGP(5n(4F=6O4iJYz0NH!Efy7F'8b+U>e{dw]mvP![ X-Hue: yellow X-Attribution: GM Date: Thu, 24 Oct 2013 03:07:06 -0400 In-Reply-To: <877gd3ofhy.fsf@HIDDEN> (Nicolas Richard's message of "Wed, 23 Oct 2013 23:15:53 +0200") Message-ID: <vbiownf8px.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.4 (-----) 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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://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: <http://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.4 (-----) Nicolas Richard wrote: > Browsing through other bugs, I spotted the followings bug report which > might be related: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=421 I don't think that's related; that's specific to gnome-open: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=421#10 I straced gnome-open and it ends with a clone statement, so I suppose emacs gets confused by the original process dying. (I don't think 421 is an Emacs bug; but that's off-topic for here.)
Received: (at control) by debbugs.gnu.org; 25 Mar 2017 05:41:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 01:41:08 2017 Received: from localhost ([127.0.0.1]:43114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1creRo-00083J-6H for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 01:41:08 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:34167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1creRm-00082v-Tp for control <at> debbugs.gnu.org; Sat, 25 Mar 2017 01:41:07 -0400 Received: by mail-it0-f48.google.com with SMTP id y18so9336578itc.1 for <control <at> debbugs.gnu.org>; Fri, 24 Mar 2017 22:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=ICsV8XaqNtIzadw7Ogo7uyQeEyDguJi++1BS8RF70ps=; b=F9QKPZy5zQp9tuk456y47rTmMTOxU1eliem3mmEYIrCXLGijBnki3QQf13JkmXzW62 G1TRUhGpmfkh/9Zo4NIDKhSe5KfkhA5WbDsKoSnEMCHaq6xrLvtWg4sfc7rriMM1ns65 h/WrCzekFqeF2H4z/MBObgt5xRAckxJgKbx66GVLZ1Y+P4lVUStVRTvhCF/FMBByZ2Bx zMFdfO5sKieiAJqiv3R2YSTjIPHluvkUnGd9m8h94PNhO9Eg9LAbbSCsakOszmbuC+uc CmL7PgLHDGIy1i96xV+BK9s3EQap7czEGhQWD2Hq0IYbOChDjhYZJ9lzApflExN7s6TT zqKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=ICsV8XaqNtIzadw7Ogo7uyQeEyDguJi++1BS8RF70ps=; b=Et77UxVcRrUKuMryqqsozo3WPp7RimDh8I+ggx7NbBHBwrvJqQCHEFigZySm/Jk7L+ iA5FBHmj5KExXjiL0ZFPT+APQlD8Ne6G27b9Y2pP2B+sFu6vD33MHwdZtC1pUx92oJHP ktfIb6HWGOGffuFwWLxsvufid9w3W4HEauUvfEhFyGrBl4ZFR/riWijxMGG/4aS4w3eb iFVXetyYkenz+023hxHndrM8LzHtTD23mRLN9wpjnvdfr/p/9aA3XQKWhQP9T34vDIqr FQkhM5j9vOQWvay0SVZcJ/zzXteakEjtpg8C3KRtVtPzqtjXVEDX/bfmBbtGq7FoLA93 48DA== X-Gm-Message-State: AFeK/H0ANBwUflixZNVpnX8YoJE77MhzBJ3JReoNxpuna+VBU3pNke8HKux87rYLMaUrSw== X-Received: by 10.36.254.199 with SMTP id w190mr611517ith.117.1490420461319; Fri, 24 Mar 2017 22:41:01 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f196sm389733itc.2.2017.03.24.22.41.00 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Mar 2017 22:41:00 -0700 (PDT) From: npostavs@HIDDEN To: control <at> debbugs.gnu.org Subject: control message for bug #15695 Date: Sat, 25 Mar 2017 01:42:24 -0400 Message-ID: <87efxl29q7.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.7 (/) tags 15695 confirmed found 15695 25.2 quit
Received: (at control) by debbugs.gnu.org; 25 Mar 2017 05:41:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 01:41:08 2017 Received: from localhost ([127.0.0.1]:43114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1creRo-00083J-6H for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 01:41:08 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:34167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1creRm-00082v-Tp for control <at> debbugs.gnu.org; Sat, 25 Mar 2017 01:41:07 -0400 Received: by mail-it0-f48.google.com with SMTP id y18so9336578itc.1 for <control <at> debbugs.gnu.org>; Fri, 24 Mar 2017 22:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=ICsV8XaqNtIzadw7Ogo7uyQeEyDguJi++1BS8RF70ps=; b=F9QKPZy5zQp9tuk456y47rTmMTOxU1eliem3mmEYIrCXLGijBnki3QQf13JkmXzW62 G1TRUhGpmfkh/9Zo4NIDKhSe5KfkhA5WbDsKoSnEMCHaq6xrLvtWg4sfc7rriMM1ns65 h/WrCzekFqeF2H4z/MBObgt5xRAckxJgKbx66GVLZ1Y+P4lVUStVRTvhCF/FMBByZ2Bx zMFdfO5sKieiAJqiv3R2YSTjIPHluvkUnGd9m8h94PNhO9Eg9LAbbSCsakOszmbuC+uc CmL7PgLHDGIy1i96xV+BK9s3EQap7czEGhQWD2Hq0IYbOChDjhYZJ9lzApflExN7s6TT zqKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=ICsV8XaqNtIzadw7Ogo7uyQeEyDguJi++1BS8RF70ps=; b=Et77UxVcRrUKuMryqqsozo3WPp7RimDh8I+ggx7NbBHBwrvJqQCHEFigZySm/Jk7L+ iA5FBHmj5KExXjiL0ZFPT+APQlD8Ne6G27b9Y2pP2B+sFu6vD33MHwdZtC1pUx92oJHP ktfIb6HWGOGffuFwWLxsvufid9w3W4HEauUvfEhFyGrBl4ZFR/riWijxMGG/4aS4w3eb iFVXetyYkenz+023hxHndrM8LzHtTD23mRLN9wpjnvdfr/p/9aA3XQKWhQP9T34vDIqr FQkhM5j9vOQWvay0SVZcJ/zzXteakEjtpg8C3KRtVtPzqtjXVEDX/bfmBbtGq7FoLA93 48DA== X-Gm-Message-State: AFeK/H0ANBwUflixZNVpnX8YoJE77MhzBJ3JReoNxpuna+VBU3pNke8HKux87rYLMaUrSw== X-Received: by 10.36.254.199 with SMTP id w190mr611517ith.117.1490420461319; Fri, 24 Mar 2017 22:41:01 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f196sm389733itc.2.2017.03.24.22.41.00 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Mar 2017 22:41:00 -0700 (PDT) From: npostavs@HIDDEN To: control <at> debbugs.gnu.org Subject: control message for bug #15695 Date: Sat, 25 Mar 2017 01:42:24 -0400 Message-ID: <87efxl29q7.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.7 (/) tags 15695 confirmed found 15695 25.2 quit
X-Loop: help-debbugs@HIDDEN Subject: bug#15695: 24.3; multiple async shell commands at once run randomly Resent-From: Noam Postavsky <npostavs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 29 Jan 2018 13:53:02 +0000 Resent-Message-ID: <handler.15695.B15695.151723398130413 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 15695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Nicolas Richard <theonewiththeevillook@HIDDEN> Cc: 15695 <at> debbugs.gnu.org Received: via spool by 15695-submit <at> debbugs.gnu.org id=B15695.151723398130413 (code B ref 15695); Mon, 29 Jan 2018 13:53:02 +0000 Received: (at 15695) by debbugs.gnu.org; 29 Jan 2018 13:53:01 +0000 Received: from localhost ([127.0.0.1]:47201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1eg9rp-0007uP-I5 for submit <at> debbugs.gnu.org; Mon, 29 Jan 2018 08:53:01 -0500 Received: from mail-it0-f44.google.com ([209.85.214.44]:54931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1eg9rm-0007u4-VE; Mon, 29 Jan 2018 08:52:59 -0500 Received: by mail-it0-f44.google.com with SMTP id k131so8377112ith.4; Mon, 29 Jan 2018 05:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PZAP28HeHbJuJGL++lFpDnS17mQpFULb20JxaWgkWTA=; b=R1Rby5W8pBIPwYUq4kpBIQR3sLl+eODynhsDldLS7/6Gr2eaXdswRj7CYhZQTJH9Y3 atpR8v//6m9o4JHiOAzflUkiq6QuJBsjmjV45BNTTTPGsQLBTplZaf2iBjEv3jU91Tjv 3ARPASyzx9E63vZboVexnjKTYO0pDfRT2Q9Bp5RiRvv7Ji6ho9yQn+sS0F9hDyl93WkY IwRKGCp6qJ/b+GBPOhxK8YL6JS97fgWdpCQooqOvx5qmQm7n3pXfL/CJSpB91b5HcxBB 39k0UJoe0cMLmo2tFXrk07YGmNPT4JvTLJC7hnlw7mSlNtlOyob/2Bn9TdErkvFR3w7D pIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=PZAP28HeHbJuJGL++lFpDnS17mQpFULb20JxaWgkWTA=; b=i0JuUm0L/A166vzA3fxoFZ8lixI0Rv+tmhsPqqBSbRzWnTqSwuLowrUNEfik00V1/1 4Ifu9s1WXPh/l6l2/4r1s9Th+6thuhIPxUGMJID0ofyt/uwS8YF//2fOlAKY+fg4Nazj C73hUtztB84WMG94V/4lY1XiLTD7AYnBXOINiPvXfl0emYW/X7rqKMd8pB7ACNREXOJX 8xxq3m4f3h7duSGB7KaZAw7/CDvsAZSWva3Qmoy9llzYipIq4/KlA2aFGR28ksCcPI+G PGO/U7ftoaNbjD1z6CK867HJ9Lk9DzJ5gGyjpJcpVVzVnTtQ+HcPYCY6Bx/LnSaCTiNa e+Wg== X-Gm-Message-State: AKwxytcWbkLk8EY/X2odKt8Je1kFaQB9DWb9rFkbM4nueDZHxDf7tUYX 8fQ83g7dS7Q2zWjUKo7SG/bbOK3u X-Google-Smtp-Source: AH8x225vddQ5opb30GZWIPId2UauEdSadoV7RS+v4Kr6nweQXJ5Zcl7GwqbaGxslQAt2pmd002w7Lg== X-Received: by 10.36.178.26 with SMTP id u26mr8385289ite.4.1517233972971; Mon, 29 Jan 2018 05:52:52 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id r13sm4243257ioa.4.2018.01.29.05.52.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2018 05:52:51 -0800 (PST) From: Noam Postavsky <npostavs@HIDDEN> References: <877gd3ofhy.fsf@HIDDEN> Date: Mon, 29 Jan 2018 08:52:50 -0500 In-Reply-To: <877gd3ofhy.fsf@HIDDEN> (Nicolas Richard's message of "Wed, 23 Oct 2013 23:15:53 +0200") Message-ID: <87wp00ixfx.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.5 (/) retitle 15695 Incomplete data from subprocesses with pty connections quit Nicolas Richard <theonewiththeevillook@HIDDEN> writes: > (defvar statistics nil "Hash table for keeping statistics") > (defun yf/keep-stats (process change) "Used as sentinel" > (with-current-buffer (process-buffer process) > (if (equal change "finished\n") > (puthash (buffer-string) (1+ (or (gethash (buffer-string) statistics) 0)) statistics) > (error "Unknown change for process %s: %s" process change)))) > (defun yf/pp-hash-table (hashtable) "Pretty print hash table" > (let ((res)) > (maphash (lambda (k v) (setq res (concat res (yf/pp-hash--line k v)))) hashtable) > (or res ""))) > (defun yf/pp-hash--line (key value) "Pretty print one hash line" > (format "%s: %s\n" (pp key) (pp value))) > (progn > (let ((n 820)) > (setq statistics (make-hash-table :test 'equal)) > (dotimes (i n) > (let* ((buffername (concat "Shell-test" (number-to-string i))) > (buffer (get-buffer-create buffername))) > (with-current-buffer buffer > (erase-buffer)) > (set-process-sentinel > (start-process buffername > buffer > shell-file-name > shell-command-switch "echo foo&echo bar&echo baz") > #'yf/keep-stats))) > t) > (sit-for 2) > (insert (yf/pp-hash-table statistics))) If I set process-connection-type to nil, then I get expected results (though I had to reduce n in order to avoid bumping into the file descriptor limit): "baz\nfoo\nbar\n": 58 "baz\nbar\nfoo\n": 41 "foo\nbaz\nbar\n": 1 Without setting process-connection-type (all tests with 26.0.91): "baz\n": 86 "baz\nbar\n": 5 "baz\nfoo\n": 6 "foo\nbaz\n": 1 "baz\nfoo\nbar\n": 2 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
Received: (at control) by debbugs.gnu.org; 29 Jan 2018 13:53:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 08:53:01 2018 Received: from localhost ([127.0.0.1]:47199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1eg9rp-0007uM-7r for submit <at> debbugs.gnu.org; Mon, 29 Jan 2018 08:53:01 -0500 Received: from mail-it0-f44.google.com ([209.85.214.44]:54931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1eg9rm-0007u4-VE; Mon, 29 Jan 2018 08:52:59 -0500 Received: by mail-it0-f44.google.com with SMTP id k131so8377112ith.4; Mon, 29 Jan 2018 05:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PZAP28HeHbJuJGL++lFpDnS17mQpFULb20JxaWgkWTA=; b=R1Rby5W8pBIPwYUq4kpBIQR3sLl+eODynhsDldLS7/6Gr2eaXdswRj7CYhZQTJH9Y3 atpR8v//6m9o4JHiOAzflUkiq6QuJBsjmjV45BNTTTPGsQLBTplZaf2iBjEv3jU91Tjv 3ARPASyzx9E63vZboVexnjKTYO0pDfRT2Q9Bp5RiRvv7Ji6ho9yQn+sS0F9hDyl93WkY IwRKGCp6qJ/b+GBPOhxK8YL6JS97fgWdpCQooqOvx5qmQm7n3pXfL/CJSpB91b5HcxBB 39k0UJoe0cMLmo2tFXrk07YGmNPT4JvTLJC7hnlw7mSlNtlOyob/2Bn9TdErkvFR3w7D pIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=PZAP28HeHbJuJGL++lFpDnS17mQpFULb20JxaWgkWTA=; b=i0JuUm0L/A166vzA3fxoFZ8lixI0Rv+tmhsPqqBSbRzWnTqSwuLowrUNEfik00V1/1 4Ifu9s1WXPh/l6l2/4r1s9Th+6thuhIPxUGMJID0ofyt/uwS8YF//2fOlAKY+fg4Nazj C73hUtztB84WMG94V/4lY1XiLTD7AYnBXOINiPvXfl0emYW/X7rqKMd8pB7ACNREXOJX 8xxq3m4f3h7duSGB7KaZAw7/CDvsAZSWva3Qmoy9llzYipIq4/KlA2aFGR28ksCcPI+G PGO/U7ftoaNbjD1z6CK867HJ9Lk9DzJ5gGyjpJcpVVzVnTtQ+HcPYCY6Bx/LnSaCTiNa e+Wg== X-Gm-Message-State: AKwxytcWbkLk8EY/X2odKt8Je1kFaQB9DWb9rFkbM4nueDZHxDf7tUYX 8fQ83g7dS7Q2zWjUKo7SG/bbOK3u X-Google-Smtp-Source: AH8x225vddQ5opb30GZWIPId2UauEdSadoV7RS+v4Kr6nweQXJ5Zcl7GwqbaGxslQAt2pmd002w7Lg== X-Received: by 10.36.178.26 with SMTP id u26mr8385289ite.4.1517233972971; Mon, 29 Jan 2018 05:52:52 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id r13sm4243257ioa.4.2018.01.29.05.52.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2018 05:52:51 -0800 (PST) From: Noam Postavsky <npostavs@HIDDEN> To: Nicolas Richard <theonewiththeevillook@HIDDEN> Subject: Re: bug#15695: 24.3; multiple async shell commands at once run randomly References: <877gd3ofhy.fsf@HIDDEN> Date: Mon, 29 Jan 2018 08:52:50 -0500 In-Reply-To: <877gd3ofhy.fsf@HIDDEN> (Nicolas Richard's message of "Wed, 23 Oct 2013 23:15:53 +0200") Message-ID: <87wp00ixfx.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control Cc: 15695 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.5 (/) retitle 15695 Incomplete data from subprocesses with pty connections quit Nicolas Richard <theonewiththeevillook@HIDDEN> writes: > (defvar statistics nil "Hash table for keeping statistics") > (defun yf/keep-stats (process change) "Used as sentinel" > (with-current-buffer (process-buffer process) > (if (equal change "finished\n") > (puthash (buffer-string) (1+ (or (gethash (buffer-string) statistics) 0)) statistics) > (error "Unknown change for process %s: %s" process change)))) > (defun yf/pp-hash-table (hashtable) "Pretty print hash table" > (let ((res)) > (maphash (lambda (k v) (setq res (concat res (yf/pp-hash--line k v)))) hashtable) > (or res ""))) > (defun yf/pp-hash--line (key value) "Pretty print one hash line" > (format "%s: %s\n" (pp key) (pp value))) > (progn > (let ((n 820)) > (setq statistics (make-hash-table :test 'equal)) > (dotimes (i n) > (let* ((buffername (concat "Shell-test" (number-to-string i))) > (buffer (get-buffer-create buffername))) > (with-current-buffer buffer > (erase-buffer)) > (set-process-sentinel > (start-process buffername > buffer > shell-file-name > shell-command-switch "echo foo&echo bar&echo baz") > #'yf/keep-stats))) > t) > (sit-for 2) > (insert (yf/pp-hash-table statistics))) If I set process-connection-type to nil, then I get expected results (though I had to reduce n in order to avoid bumping into the file descriptor limit): "baz\nfoo\nbar\n": 58 "baz\nbar\nfoo\n": 41 "foo\nbaz\nbar\n": 1 Without setting process-connection-type (all tests with 26.0.91): "baz\n": 86 "baz\nbar\n": 5 "baz\nfoo\n": 6 "foo\nbaz\n": 1 "baz\nfoo\nbar\n": 2 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
X-Loop: help-debbugs@HIDDEN Subject: bug#15695: 24.3; multiple async shell commands at once run randomly Resent-From: Noam Postavsky <npostavs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 02 Apr 2018 23:50:01 +0000 Resent-Message-ID: <handler.15695.B15695.152271297610174 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 15695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: 15695 <at> debbugs.gnu.org Cc: Nicolas Richard <theonewiththeevillook@HIDDEN> Received: via spool by 15695-submit <at> debbugs.gnu.org id=B15695.152271297610174 (code B ref 15695); Mon, 02 Apr 2018 23:50:01 +0000 Received: (at 15695) by debbugs.gnu.org; 2 Apr 2018 23:49:36 +0000 Received: from localhost ([127.0.0.1]:35599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1f39Ci-0002dx-8b for submit <at> debbugs.gnu.org; Mon, 02 Apr 2018 19:49:36 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:34165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1f39Cg-0002dg-Kh; Mon, 02 Apr 2018 19:49:35 -0400 Received: by mail-io0-f175.google.com with SMTP id d6so17833204iog.1; Mon, 02 Apr 2018 16:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4pLFMytr5H7a4OeTFT5x4NyuWTONKRar5imzU/FCo8s=; b=FQNjkbVpDeiUrMZlM9ORv4joECASofuOeumbpRmhArRFIhxQrTedjVKyNtsF9e+s6l SW39QM/B69qxLP+GGwAYyhWjNIdCXA1lEd31cVyQV83SoWiqtbXdCX8zp4xbOiInHuKj RPzE3sLKPrQjOeie1t2+V4m8voEkRlmwzh1xqmjH5aqqP7D2R4ZGudljzHmrxRfoRRFU H3Gro/a01O2r86QO4StVZlKwws+Z0ysXiLQJOvfxTLg+FEaCUNGyi8u3qVHHUSqlHoHC jD5789Drc3/IlWvj2D/eTozSIsuMWNws/+76/5yeEQ5AbW4U278XSxG66AXVsIhSfpT6 Ho2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4pLFMytr5H7a4OeTFT5x4NyuWTONKRar5imzU/FCo8s=; b=EE88frJ6AsqW+hocI9IfrFLwaxSrlORyQJhXF3djlrbEu24VYVRpbOZ9pjuNctz6bp DtakIZj3p5jVyij3usgYAlnBSY3NEC+lSQx8/eNJpfJKJ9znpJmWeyOJwJSfrJUzoG4A Gkmo+jbj79SJwjpnCSwk3bKnBODUyLLftgYZ3y+bmEreeEF/cpTlYjeRVtvQXUx/kMso i3wqhCz6a1NAvhxzwDIPioZGzvGkN0XODsE44BtbPf5tzjk9R2DMr9K3v6u8R/Is+hDv R1Wj66PYRiZas+URN2+qVqiK3o2vzTVW1ZU5tgHLLh7KOZ/ECVwOtfFOUNusPmiW+mrS j4Vg== X-Gm-Message-State: AElRT7GwI+byqxvzaRh+wAkcbziRGpFvBkewZ2vSjV2IsT6cZtobYFQt QOlPX0rBtH7nQ+3OYXD0qi0WfQ== X-Google-Smtp-Source: AIpwx48bBD0NplbhIe52gLmgNitH3up4zupRponwqzUb7h1Xf534cF2OiQInm5B24EHq07IMmw/GwQ== X-Received: by 10.107.58.134 with SMTP id h128mr10170604ioa.299.1522712968819; Mon, 02 Apr 2018 16:49:28 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z64sm723590ioi.51.2018.04.02.16.49.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Apr 2018 16:49:28 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> References: <877gd3ofhy.fsf@HIDDEN> <87wp00ixfx.fsf@HIDDEN> Date: Mon, 02 Apr 2018 19:49:27 -0400 In-Reply-To: <87wp00ixfx.fsf@HIDDEN> (Noam Postavsky's message of "Mon, 29 Jan 2018 08:52:50 -0500") Message-ID: <87sh8dnp88.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.0 (/) 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.
Received: (at control) by debbugs.gnu.org; 2 Apr 2018 23:49:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 02 19:49:36 2018 Received: from localhost ([127.0.0.1]:35597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1f39Ci-0002dv-1f for submit <at> debbugs.gnu.org; Mon, 02 Apr 2018 19:49:36 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:34165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1f39Cg-0002dg-Kh; Mon, 02 Apr 2018 19:49:35 -0400 Received: by mail-io0-f175.google.com with SMTP id d6so17833204iog.1; Mon, 02 Apr 2018 16:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4pLFMytr5H7a4OeTFT5x4NyuWTONKRar5imzU/FCo8s=; b=FQNjkbVpDeiUrMZlM9ORv4joECASofuOeumbpRmhArRFIhxQrTedjVKyNtsF9e+s6l SW39QM/B69qxLP+GGwAYyhWjNIdCXA1lEd31cVyQV83SoWiqtbXdCX8zp4xbOiInHuKj RPzE3sLKPrQjOeie1t2+V4m8voEkRlmwzh1xqmjH5aqqP7D2R4ZGudljzHmrxRfoRRFU H3Gro/a01O2r86QO4StVZlKwws+Z0ysXiLQJOvfxTLg+FEaCUNGyi8u3qVHHUSqlHoHC jD5789Drc3/IlWvj2D/eTozSIsuMWNws/+76/5yeEQ5AbW4U278XSxG66AXVsIhSfpT6 Ho2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4pLFMytr5H7a4OeTFT5x4NyuWTONKRar5imzU/FCo8s=; b=EE88frJ6AsqW+hocI9IfrFLwaxSrlORyQJhXF3djlrbEu24VYVRpbOZ9pjuNctz6bp DtakIZj3p5jVyij3usgYAlnBSY3NEC+lSQx8/eNJpfJKJ9znpJmWeyOJwJSfrJUzoG4A Gkmo+jbj79SJwjpnCSwk3bKnBODUyLLftgYZ3y+bmEreeEF/cpTlYjeRVtvQXUx/kMso i3wqhCz6a1NAvhxzwDIPioZGzvGkN0XODsE44BtbPf5tzjk9R2DMr9K3v6u8R/Is+hDv R1Wj66PYRiZas+URN2+qVqiK3o2vzTVW1ZU5tgHLLh7KOZ/ECVwOtfFOUNusPmiW+mrS j4Vg== X-Gm-Message-State: AElRT7GwI+byqxvzaRh+wAkcbziRGpFvBkewZ2vSjV2IsT6cZtobYFQt QOlPX0rBtH7nQ+3OYXD0qi0WfQ== X-Google-Smtp-Source: AIpwx48bBD0NplbhIe52gLmgNitH3up4zupRponwqzUb7h1Xf534cF2OiQInm5B24EHq07IMmw/GwQ== X-Received: by 10.107.58.134 with SMTP id h128mr10170604ioa.299.1522712968819; Mon, 02 Apr 2018 16:49:28 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z64sm723590ioi.51.2018.04.02.16.49.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Apr 2018 16:49:28 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> To: 15695 <at> debbugs.gnu.org Subject: Re: bug#15695: 24.3; multiple async shell commands at once run randomly References: <877gd3ofhy.fsf@HIDDEN> <87wp00ixfx.fsf@HIDDEN> Date: Mon, 02 Apr 2018 19:49:27 -0400 In-Reply-To: <87wp00ixfx.fsf@HIDDEN> (Noam Postavsky's message of "Mon, 29 Jan 2018 08:52:50 -0500") Message-ID: <87sh8dnp88.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: Nicolas Richard <theonewiththeevillook@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.0 (/) 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.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.