From unknown Mon Jun 23 04:12:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13475 <13475@debbugs.gnu.org> To: bug#13475 <13475@debbugs.gnu.org> Subject: Status: 24.2.91; accept-process-output hangs emacs on killed sub-process Reply-To: bug#13475 <13475@debbugs.gnu.org> Date: Mon, 23 Jun 2025 11:12:34 +0000 retitle 13475 24.2.91; accept-process-output hangs emacs on killed sub-proc= ess reassign 13475 emacs submitter 13475 Vitalie Spinu severity 13475 normal tag 13475 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 17 07:38:49 2013 Received: (at submit) by debbugs.gnu.org; 17 Jan 2013 12:38:49 +0000 Received: from localhost ([127.0.0.1]:36331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvok4-0008Mn-2j for submit@debbugs.gnu.org; Thu, 17 Jan 2013 07:38:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55869) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tvok0-0008Me-Va for submit@debbugs.gnu.org; Thu, 17 Jan 2013 07:38:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvojH-0004Z9-GO for submit@debbugs.gnu.org; Thu, 17 Jan 2013 07:38:04 -0500 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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvojH-0004Z2-9I for submit@debbugs.gnu.org; Thu, 17 Jan 2013 07:37:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvojD-0007BA-C0 for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 07:37:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvoj8-0004Xz-Dd for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 07:37:55 -0500 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:50686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvoTJ-0000YJ-NI for bug-gnu-emacs@gnu.org; Thu, 17 Jan 2013 07:21:29 -0500 Received: by mail-wi0-f170.google.com with SMTP id hq7so4538070wib.5 for ; Thu, 17 Jan 2013 04:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:mime-version :content-type; bh=3qH3zodNUq9hjsVa17Q5jMtD48bsVzpO9l1ASGXZ7PY=; b=ekfjTzn0xspCdADNdzE3NOBeVADDUgoCufmsnYSfnP6dNzFlfzUgIWc48FZVRoWBx/ QGDaA8ErtMSRI8uCQUquEE8C58vcZyeHb5ScLmL8HAXxIy4tiAIRN2VWcRMEb109fTGC 0i+1oNGorUCBI/Z2Sc9dZBxOdLRJqYwNSsghW9zmPKZG9blwRFxUyBv1UNyoq/jvK7Tg 5Dckx2fjGIDBTMT1LA43gKf5PRgrWJwMevIB2OQmax7Fno9qwVaRA4O/Jw8a3qIeYa+O TFqYl5hSDUa6CmcqC/hU1Rr9Xwt1jdlxlLmOyPOAN8qnQkc1dGA1KmOk+qtroLgFuKlI BWwQ== X-Received: by 10.180.92.100 with SMTP id cl4mr15478269wib.24.1358425288319; Thu, 17 Jan 2013 04:21:28 -0800 (PST) Received: from localhost (i108036.upc-i.chello.nl. [62.195.108.36]) by mx.google.com with ESMTPS id hu8sm12672854wib.6.2013.01.17.04.21.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 17 Jan 2013 04:21:27 -0800 (PST) From: Vitalie Spinu To: bug-gnu-emacs@gnu.org Subject: 24.2.91; accept-process-output hangs emacs on killed sub-process Date: Thu, 17 Jan 2013 13:21:25 +0100 Message-ID: <87boco3sqi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Hi, Accept-process-output, when run with WAIT argument, hangs emacs when the underlying sub-process was killed. When WAIT is nil this problem does not occur. Start M-x shell and execute: (let ((proc (get-process "shell"))) (process-send-string proc "sleep 60\n") (while (not (accept-process-output proc .01)))) This puts emacs in a loop as expected. Now kill the bash process from outside emacs and you will see that emacs is still hanged. This problem does not occur when WAIT argument is nil. For example on the execution of the following code, emacs successfully exits the waiting loop after the bash process has been killed: (let ((proc (get-process "shell"))) (accept-process-output proc)) Thanks, Vitalie In GNU Emacs 24.2.91.1 (i686-pc-linux-gnu, GTK+ Version 2.24.13) of 2012-12-29 on vitoshka-home Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode) S))) global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t jabber-activity-mode: t TeX-PDF-mode: t sr-popviewer-mode: t global-auto-complete-mode: t auto-complete-mode: t diff-auto-refine-mode: t helm-match-plugin-mode: t shell-dirtrack-mode: t eldoc-mode: t recentf-mode: t show-paren-mode: t savehist-mode: t display-time-mode: t ido-everywhere: t global-auto-revert-mode: t global-subword-mode: t subword-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-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 hs-minor-mode: t Recent input: s s SPC " h s h e l l C-f ) ) ) C-n C-n M-f M-f M-f M-f M-b M-d p r o c M-f M-b M-d . 0 0 1 1 C-f C-p C-f C-f C-e C-M-b SPC C-e ) C-c t M-: M-p C-k C-y M-y C-p C-o C-x b s c C-x C-e C-p C-n ) C-x C-e C-n C-p C-p ( p r o c e s s - s e n d - s t SPC " C-b p r o c SPC b s C-b s l e e p SPC 3 0 \ n C-e ) C-n C-e C-x C-e C-p C-n C-o C-o C-o M-b M-b M-b M-b M-b C-b ( n o t SPC M-f C-h f C-o C-o C-o C-o C-e ) C-x C-e C-p M-b M-b C-d 6 C-n C-p 3 C-n C-e C-x C-e C-p M-b M-b C-d 6 C-p C-a C-SPC C-n C-n C-n M-w C-o C-o C-o C-c t C-o C-y C-p C-p C-p M-f M-f C-n C-a C-k C-k M-f M-f C-f C-M-f C-b M-m C-f M-f C-f C-M-f C-e C-M-b n C-n C-e C-x C-e C-p C-p C-n C-n C-o C-o C-o C-o C-p C-p C-p C-e C-p M-b M-b C-d 3 C-n C-e C-x C-e C-o C-o C-o C-c t C-o C-x C-e C-o C-o C-o C-c t C-o C-n C-n C-n C-x C-e C-p C-n C-n C-x 4 C-g M-x e r e p o r t Recent messages: nil Quit Mark set [2 times] nil user-error: Current buffer has no process let: Buffer *scratch* has no process Quit user-error: Current buffer has no process nil with-no-warnings: Text is read-only Load-path shadows: /home/vitoshka/Dropbox/ELPA/magit-20130112.1253/.dir-locals hides /home/vitoshka/Dropbox/ELPA/sunrise-commander-20130107.37/.dir-locals /home/vitoshka/Dropbox/ELPA/magit-20130112.1253/.dir-locals hides ~/VC/gnus/.dir-locals ~/VC/gnus/lisp/lpath hides ~/VC/auctex/lpath /home/vitoshka/Dropbox/ELPA/popup-20121020.1203/popup hides ~/VC/popup-el/popup ~/VC/gnus/lisp/format-spec hides /home/vitoshka/TVC/emacs/lisp/format-spec ~/VC/org-mode/lisp/ob-plantuml hides /home/vitoshka/TVC/emacs/lisp/org/ob-plantuml ~/VC/org-mode/lisp/org-gnus hides /home/vitoshka/TVC/emacs/lisp/org/org-gnus ~/VC/org-mode/lisp/ob-maxima hides /home/vitoshka/TVC/emacs/lisp/org/ob-maxima ~/VC/org-mode/lisp/ob-js hides /home/vitoshka/TVC/emacs/lisp/org/ob-js ~/VC/org-mode/lisp/org-footnote hides /home/vitoshka/TVC/emacs/lisp/org/org-footnote ~/VC/org-mode/lisp/org-mac-message hides /home/vitoshka/TVC/emacs/lisp/org/org-mac-message ~/VC/org-mode/lisp/ob-awk hides /home/vitoshka/TVC/emacs/lisp/org/ob-awk ~/VC/org-mode/lisp/org-wl hides /home/vitoshka/TVC/emacs/lisp/org/org-wl ~/VC/org-mode/lisp/ob-picolisp hides /home/vitoshka/TVC/emacs/lisp/org/ob-picolisp ~/VC/org-mode/lisp/org-protocol hides /home/vitoshka/TVC/emacs/lisp/org/org-protocol ~/VC/org-mode/lisp/ob-sh hides /home/vitoshka/TVC/emacs/lisp/org/ob-sh ~/VC/org-mode/lisp/org-exp hides /home/vitoshka/TVC/emacs/lisp/org/org-exp ~/VC/org-mode/lisp/ob-dot hides /home/vitoshka/TVC/emacs/lisp/org/ob-dot ~/VC/org-mode/lisp/org-archive hides /home/vitoshka/TVC/emacs/lisp/org/org-archive ~/VC/gnus/lisp/sasl hides /home/vitoshka/TVC/emacs/lisp/net/sasl ~/VC/gnus/lisp/gnus-bookmark hides /home/vitoshka/TVC/emacs/lisp/gnus/gnus-bookmark ~/VC/gnus/lisp/sieve-mode hides /home/vitoshka/TVC/emacs/lisp/gnus/sieve-mode ~/VC/gnus/lisp/gnus-setup hides /home/vitoshka/TVC/emacs/lisp/gnus/gnus-setup ~/VC/gnus/lisp/gnus-kill hides /home/vitoshka/TVC/emacs/lisp/gnus/gnus-kill ~/VC/gnus/lisp/yenc hides /home/vitoshka/TVC/emacs/lisp/gnus/yenc ~/VC/gnus/lisp/messcompat hides /home/vitoshka/TVC/emacs/lisp/gnus/messcompat ~/VC/gnus/lisp/nnml hides /home/vitoshka/TVC/emacs/lisp/gnus/nnml ~/VC/gnus/lisp/deuglify hides /home/vitoshka/TVC/emacs/lisp/gnus/deuglify ~/VC/gnus/lisp/mm-extern hides /home/vitoshka/TVC/emacs/lisp/gnus/mm-extern ~/VC/gnus/lisp/gnus-html hides /home/vitoshka/TVC/emacs/lisp/gnus/gnus-html ~/VC/gnus/lisp/nnweb hides /home/vitoshka/TVC/emacs/lisp/gnus/nnweb ~/VC/gnus/lisp/gnus-srvr hides /home/vitoshka/TVC/emacs/lisp/gnus/gnus-srvr ~/VC/gnus/lisp/pgg-gpg hides /home/vitoshka/TVC/emacs/lisp/obsolete/pgg-gpg /home/vitoshka/Dropbox/ELPA/rebox2-20121113.2100/rebox2 hides /home/vitoshka/Dropbox/.emacs.d/site-lisp/rebox2/rebox2 Features: (shadow emacsbug tabify cal-move rect image-file org-capture org-mks org-archive cal-iso pcmpl-gnu tramp-cmds arc-mode archive-mode pcmpl-unix two-column iso-transl tramp-sh gdb-mi bindat gud tramp-cache semantic/imenu semantic/sb semantic/edit semantic/tag-write semantic/bovine/make semantic/bovine/make-by semantic/tag-file semantic/db-file data-debug cedet-files semantic/bovine/c semantic/decorate/include semantic/decorate/mode semantic/decorate pulse hideif semantic/db-find semantic/db-ref semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db-mode semantic/db eieio-base semantic/idle semantic/format semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet fuzzy cus-edit helm-imenu flow-fill help-mode bm dabbrev rainbow-delimiters helm-mode helm-files image-dired helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptative helm-info helm-net helm-plugin helm-locate helm-help helm-external helm-grep grep helm-regexp helm-utils make-mode yasnippet dropdown-list etags cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine org-element misearch multi-isearch skeleton url-http url-auth url-gw wdired mule-util goto-addr macros jabber-keepalive jabber-bookmarks jabber-private jabber jabber-awesome jabber-osd jabber-wmii jabber-xmessage jabber-festival jabber-sawfish jabber-ratpoison jabber-screen jabber-socks5 jabber-ft-server jabber-si-server jabber-ft-client jabber-ft-common jabber-si-client jabber-si-common jabber-feature-neg jabber-truncate jabber-time jabber-autoaway jabber-vcard-avatars jabber-chatstates jabber-events jabber-vcard jabber-avatar jabber-activity jabber-watch jabber-modeline jabber-ahc-presence jabber-ahc jabber-version jabber-ourversion jabber-muc-nick-completion hippie-exp jabber-browse jabber-search jabber-register jabber-roster jabber-presence jabber-muc jabber-newdisco jabber-widget jabber-disco jabber-chat ewoc jabber-history jabber-chatbuffer jabber-alert jabber-iq jabber-keymap jabber-core jabber-sasl sasl sasl-anonymous sasl-login sasl-plain fsm jabber-logon jabber-conn srv dns jabber-xml jabber-menu jabber-util debug view magithub crm json magit-bisect magit-key-mode magit vc-git reftex-auc ediff smex texmathp preview prv-emacs tex-buf zotelo font-latex latex tex-style tex dbus xml latexenc shr nnfolder bbdb-message sendmail flymake smiley gnus-cite mm-archive mail-extr gnus-async gnus-bcklg qp gnus-ml gnus-topic utf-7 nndraft nnmh nnimap parse-time utf7 gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-cache bbdb-gnus bbdb-mua bbdb-com netrc network-stream starttls tls gnus-notify gnus-demon nntp bbdb timezone supercite regi nnir gnus-load gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems gnus-compat url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap nnheader mail-utils url-util url-handlers reftex-dcr flyspell ispell org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-info org-gnus org-docview org-bibtex bibtex org-bbdb ffap url-parse url-vars sunrise-x-popviewer sunrise-x-checkpoints bookmark sunrise-x-loop sunrise-x-tree sunrise-commander term ehelp electric sort hl-line find-dired esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-util esh-module esh-mode disp-table enriched dired-x dired-aux desktop ob-latex ob-R appt diary-lib diary-loaddefs org-clock org-exp ob-exp org-agenda org ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs find-func cal-menu calendar cal-loaddefs iimage pos-tip ac-octave octave-inf octave-mod ac-math auto-complete-config auto-complete popup saveplace doc-view jka-compr image-mode reftex reftex-vars reftex-cite preview-latex tex-site auto-loads info-look psvn log-edit pcvs-util add-log diff-mode elp ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired xquery-mode generic rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok smart-operator rx rebox2 slime-media slime-presentations slime-scratch slime-asdf slime-repl slime derived pp hyperspec menu-bar+ helm-descbinds helm-match-plugin helm warnings helm-config iflipb mic-paren adaptive-wrap-autoloads bbdb-autoloads bm-autoloads bookmark+-autoloads edit-server-autoloads eldoc-eval-autoloads esk-autoloads flex-isearch-autoloads fuzzy-autoloads fuzzy-match-autoloads git-blame-autoloads helm-autoloads helm-descbinds-autoloads htmlize-autoloads ido-load-library-autoloads ido-ubiquitous-autoloads ido-yes-or-no-autoloads iflipb-autoloads igrep-autoloads jabber-autoloads js2-mode-autoloads lacarte-autoloads magit-gh-pulls-autoloads gh-autoloads logito-autoloads magit-push-remote-autoloads magithub-autoloads magit-autoloads markdown-mode+-autoloads markdown-mode-autoloads memory-usage-autoloads mic-paren-autoloads minimap-autoloads oauth2-autoloads persistent-soft-autoloads list-utils-autoloads pcache-autoloads finder-inf popup-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads rebox2-autoloads smex-autoloads stem-autoloads sunrise-commander-autoloads synonyms-autoloads w3m-autoloads zotelo-autoloads package tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv assoc gnus-util mm-util mail-prsvr password-cache tramp-loaddefs format-spec ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a shell pcomplete ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-julia ess-r-d ess-tracebug compile ess-roxy easy-mmode hideshow ess-help info reporter ess-developer ess-r-args eldoc ess-s-l speedbar sb-image ezimage dframe ess ess-inf comint ansi-color ring ess-mode ess-noweb-mode edmacro kmacro ess-utils ess-custom ess-compat ess-site ibuf-ext ibuffer recentf tree-widget wid-edit easymenu uniquify paren savehist time cus-start cus-load solarized-dark-theme solarized imenu-anywhere cl-macs gv imenu ido sh-script smie executable advice help-fns advice-preload autorevert subword server cl cl-lib time-date 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 move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 12:01:04 2016 Received: (at control) by debbugs.gnu.org; 26 Jun 2016 16:01:04 +0000 Received: from localhost ([127.0.0.1]:56909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHCUa-0004OB-1D for submit@debbugs.gnu.org; Sun, 26 Jun 2016 12:01:04 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:35731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHCUZ-0004NY-1U for control@debbugs.gnu.org; Sun, 26 Jun 2016 12:01:03 -0400 Received: by mail-oi0-f67.google.com with SMTP id d132so26566981oig.2 for ; Sun, 26 Jun 2016 09:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=UrY3mo8XStltlUcpusXBrxFhCsMHtrf1kOcwIZD5y4A=; b=Qlw3+p5f2cDSQVD529IlJ6TWiWC+H0FOGLQwUiMrD3Ybozx/B4PbGhUK/EJJohbyH7 DO20Zq0FCA9ubfgViGHTjOcwwUiuTe/O8EjoLkEl/8zGMAigdFeqp7l+YpHi97RyrAzA QDmn0VRzOpjzzyR3X76K78TFZKYV1LzptyXYbz3St7buJIOfbDC3o2G2ySoxhte8udDX qcoiHDEiN7oUeplpZGADy9m7WLPhGKAAdeFvNq1XJ5dfgVODknAVUyXuuF7anR0KC/B5 6yvs9dNECGD+mUlL8cc5cNULSG+L+uudneQCRsgrWo57AVRt44ezaCbcWQ44IHrvgDQs DugA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=UrY3mo8XStltlUcpusXBrxFhCsMHtrf1kOcwIZD5y4A=; b=PyynQ4iTBeuz1Bd6Z4aCid+DeqIn3T32RX2anBTfpau41/R+gLMpmWv+hxlz5oK6aI Yau4rLrf306lQNNpCH5CgVOta/RGqXqnofzJZeGqojwSQtJ6V8jWnN62Fq+L7YbMXHWx NUFhSJQZ2fOLhq5TL5vNelRzFNNLuZmok34kvrmgrvznfFxzZgi4SnKjGeIZRmZNfY46 tXipz/TmVuA6txd9FLXv64w3IYD2xItF2WVZMMJqMG8s/5S2ufywpC4UMF2aN676pAYC qiXk6XYujc66ij8X/j4Nk+1Oy6koRVEfT751F7zGMhsbLsj8RQi8F0IOVWPSGYWqdr/R dMMQ== X-Gm-Message-State: ALyK8tICyzf7ULyRSngZEGAn2l8zN942D8n3e5ucEABlGoOKCEGXkpUe01nMQYHVjRZ/R/3Jzx8lWN+wA8BFfg== X-Received: by 10.202.5.193 with SMTP id 184mr6838451oif.143.1466956857328; Sun, 26 Jun 2016 09:00:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.52.238 with HTTP; Sun, 26 Jun 2016 09:00:56 -0700 (PDT) From: Noam Postavsky Date: Sun, 26 Jun 2016 12:00:56 -0400 X-Google-Sender-Auth: 7DbODcSNjCXRlVsF1u8XSldHhbQ Message-ID: Subject: Bug #13475: 24.2.91; accept-process-output hangs emacs on killed sub-process To: GNU bug tracker automated control server Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tag 13475 + confirmed found 13475 25.0.95 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 13:24:59 2019 Received: (at 13475) by debbugs.gnu.org; 3 Oct 2019 17:24:59 +0000 Received: from localhost ([127.0.0.1]:41047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4qZ-00086l-J3 for submit@debbugs.gnu.org; Thu, 03 Oct 2019 13:24:59 -0400 Received: from quimby.gnus.org ([80.91.231.51]:52606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4qY-00086b-5d for 13475@debbugs.gnu.org; Thu, 03 Oct 2019 13:24:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG4qU-0001tQ-Bt; Thu, 03 Oct 2019 19:24:56 +0200 From: Lars Ingebrigtsen To: Vitalie Spinu Subject: Re: bug#13475: 24.2.91; accept-process-output hangs emacs on killed sub-process References: <87boco3sqi.fsf@gmail.com> Date: Thu, 03 Oct 2019 19:24:54 +0200 In-Reply-To: <87boco3sqi.fsf@gmail.com> (Vitalie Spinu's message of "Thu, 17 Jan 2013 13:21:25 +0100") Message-ID: <87eeztg2s9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Vitalie Spinu writes: > Accept-process-output, when run with WAIT argument, hangs emacs when the > underlying sub-process was killed. When WAIT is nil this problem does > not occur. > > Start M-x shell and execute: > > (le [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13475 Cc: 13475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Vitalie Spinu writes: > Accept-process-output, when run with WAIT argument, hangs emacs when the > underlying sub-process was killed. When WAIT is nil this problem does > not occur. > > Start M-x shell and execute: > > (let ((proc (get-process "shell"))) > (process-send-string proc "sleep 60\n") > (while (not (accept-process-output proc .01)))) > > This puts emacs in a loop as expected. Now kill the bash process from > outside emacs and you will see that emacs is still hanged. > > This problem does not occur when WAIT argument is nil. For example on > the execution of the following code, emacs successfully exits the waiting > loop after the bash process has been killed: > > (let ((proc (get-process "shell"))) > (accept-process-output proc)) (I'm going through old Emacs bug reports that unfortunately got no response at the time.) I'm don't think this is a bug -- as you say, if PROC is dead, then we just heed the timeout, so in a loop like this, you should check whether PROC is alive before calling `accept-process-output'. So I'm closing this bug report. I somebody things that Emacs should be changed to make accept-process-output to return immediately (with a non-nil return value?) if PROC is dead, please reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 13:25:07 2019 Received: (at control) by debbugs.gnu.org; 3 Oct 2019 17:25:07 +0000 Received: from localhost ([127.0.0.1]:41051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4qe-00087X-S6 for submit@debbugs.gnu.org; Thu, 03 Oct 2019 13:25:07 -0400 Received: from quimby.gnus.org ([80.91.231.51]:52626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG4qc-00087B-NU for control@debbugs.gnu.org; Thu, 03 Oct 2019 13:25:03 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG4qZ-0001tY-Vl for control@debbugs.gnu.org; Thu, 03 Oct 2019 19:25:01 +0200 Date: Thu, 03 Oct 2019 19:24:59 +0200 Message-Id: <87d0fdg2s4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #13475 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 13475 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 13475 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 04 10:50:08 2019 Received: (at 13475) by debbugs.gnu.org; 4 Oct 2019 14:50:08 +0000 Received: from localhost ([127.0.0.1]:43330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGOuG-0006CC-Gr for submit@debbugs.gnu.org; Fri, 04 Oct 2019 10:50:08 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:38983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGOuD-0006Ba-4v for 13475@debbugs.gnu.org; Fri, 04 Oct 2019 10:50:06 -0400 Received: by mail-wm1-f45.google.com with SMTP id v17so6176743wml.4 for <13475@debbugs.gnu.org>; Fri, 04 Oct 2019 07:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JoEwS3U4EUT2Jl2J1AEtVAX02Xc5r2vR+0RQpa0eTrA=; b=KURm4SZqf7NFybGSTrze4vnmR/1Idfn++j5KoIzWc0omy89nCTbxMQEd+51MRisAlB X9pc+lzcsrMKQD3JUp/nGaS1gMjg1mcF/kooqPbQTJ6yj3NovCHuudsvfW5bjbaT3UNC KjVcIWIYOUXGORlrgiKIrqyQ7E9XyX/GqBOEfeWwFOp7LYYHlGVc6njPqNletrIXIRpe EZLqTqGTDLOOlsAqTq687uyA0LPqaBvVglp2SATuIM5yIv1hHDUqNJINc+N0g8k8Il8D auWa7r5SQ/3IbG9fpFZnln//CCrBcyqrBrNrabRHA3pXsrrKHtG6s75aN6xDr1OScoE9 Fikw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JoEwS3U4EUT2Jl2J1AEtVAX02Xc5r2vR+0RQpa0eTrA=; b=GBGyVJA2E4bDSwk26+w1mT1ufSCTvQ4uCqiYhPdBHYw9eaHbZ5uy1hYS5o7qlPYNQu AwZK7GZyOSCKY+5DzVr99Tvl42oQ1RyNZMKwazyfexCMdZL2t9j3ahAJGfEyNc8F1AK/ 9YZHe2zXPa7IVp+51YW2Q8T/UCz3qVtiH0YhYbNeWX/B6egGChrpUaHwJwU3AvABSGsz BJuveRnPP116x8f0lyh+/OogbwqorRXgumX3qeOy+0ffeadx6ZQPDLtBLa/6lE2rCzjI nJIfGVYLB9dd6Ne4OjySBhFTaU8jUhdESJGwyE1m09iUHydGS0nk/2+CPMAz0SmYWvC1 d/iQ== X-Gm-Message-State: APjAAAU5qTTNSqbAsVUkLpzPxQMYWP9CXoMYqZHh69k+IBHCXeGZmXZk lsUpmsVpnzkq4mw2pghVEVZs5ZmB0sk= X-Google-Smtp-Source: APXvYqxR5yaLUxCHmONRP74bPSZkESc2QwlYzyTidxnhrz8mYZU6ptuFVxrG2ohbxLCA3Z1Cf8xg4g== X-Received: by 2002:a1c:e008:: with SMTP id x8mr10859500wmg.85.1570200598773; Fri, 04 Oct 2019 07:49:58 -0700 (PDT) Received: from [192.168.0.133] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id a10sm7292963wrm.52.2019.10.04.07.49.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 07:49:57 -0700 (PDT) Subject: Re: bug#13475: 24.2.91; accept-process-output hangs emacs on killed sub-process To: Lars Ingebrigtsen , Vitalie Spinu References: <87boco3sqi.fsf@gmail.com> <87eeztg2s9.fsf@gnus.org> From: Dmitry Gutov Message-ID: <28c1cd1f-1101-1402-6fe8-b9a677539568@yandex.ru> Date: Fri, 4 Oct 2019 17:49:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <87eeztg2s9.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 13475 Cc: 13475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 03.10.2019 20:24, Lars Ingebrigtsen wrote: > I'm don't think this is a bug -- as you say, if PROC is dead, then we > just heed the timeout, so in a loop like this, you should check whether > PROC is alive before calling `accept-process-output'. > > So I'm closing this bug report. I somebody things that Emacs should be > changed to make accept-process-output to return immediately (with a > non-nil return value?) if PROC is dead, please reopen. Shouldn't we consider the "connection" to be "closed" if the process is dead? From the docstring: Return non-nil if we received any output from PROCESS (or, if PROCESS is nil, from any process) before the timeout expired or the corresponding connection was closed. That might also imply that the function should return right away. But the example should work correctly even if it waits the required number of seconds and then returns non-nil. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 06 23:19:18 2019 Received: (at 13475) by debbugs.gnu.org; 7 Oct 2019 03:19:18 +0000 Received: from localhost ([127.0.0.1]:47093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHJYL-0000h4-0v for submit@debbugs.gnu.org; Sun, 06 Oct 2019 23:19:18 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHJYI-0000gv-Fy for 13475@debbugs.gnu.org; Sun, 06 Oct 2019 23:19:15 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHJYF-0004yZ-8e; Mon, 07 Oct 2019 05:19:13 +0200 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#13475: 24.2.91; accept-process-output hangs emacs on killed sub-process References: <87boco3sqi.fsf@gmail.com> <87eeztg2s9.fsf@gnus.org> <28c1cd1f-1101-1402-6fe8-b9a677539568@yandex.ru> Date: Mon, 07 Oct 2019 05:19:10 +0200 In-Reply-To: <28c1cd1f-1101-1402-6fe8-b9a677539568@yandex.ru> (Dmitry Gutov's message of "Fri, 4 Oct 2019 17:49:56 +0300") Message-ID: <878spxckep.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > On 03.10.2019 20:24, Lars Ingebrigtsen wrote: > >> I'm don't think this is a bug -- as you say, if PROC is dead, then we >> just heed the timeout, so in a loop like this, you should check whether >> [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13475 Cc: Vitalie Spinu , 13475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > On 03.10.2019 20:24, Lars Ingebrigtsen wrote: > >> I'm don't think this is a bug -- as you say, if PROC is dead, then we >> just heed the timeout, so in a loop like this, you should check whether >> PROC is alive before calling `accept-process-output'. >> So I'm closing this bug report. I somebody things that Emacs should >> be >> changed to make accept-process-output to return immediately (with a >> non-nil return value?) if PROC is dead, please reopen. > > Shouldn't we consider the "connection" to be "closed" if the process > is dead? From the docstring: > > Return non-nil if we received any output from PROCESS (or, if PROCESS > is nil, from any process) before the timeout expired or the > corresponding connection was closed. By "was closed" here, I think what's meant is "was closed before TIMEOUT expired". If the connection is closed before the call, we wait for the entire timeout. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 07 06:15:03 2019 Received: (at 13475) by debbugs.gnu.org; 7 Oct 2019 10:15:03 +0000 Received: from localhost ([127.0.0.1]:47388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHQ2g-0002Cx-W9 for submit@debbugs.gnu.org; Mon, 07 Oct 2019 06:15:03 -0400 Received: from mail-lj1-f172.google.com ([209.85.208.172]:38436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHQ2e-0002CA-PQ for 13475@debbugs.gnu.org; Mon, 07 Oct 2019 06:15:01 -0400 Received: by mail-lj1-f172.google.com with SMTP id b20so12994897ljj.5 for <13475@debbugs.gnu.org>; Mon, 07 Oct 2019 03:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Q2L52N2b0L+R3rWfSfQEVZ7mQEq57tNFtPEOTIDiHOA=; b=p+0XHcKo8Pd9c3tEtOWlctNAR7Jkvj1+X1UnJCp+3/tjOwA0Y7+PVf64YYKgbDwis1 HbcJCMIo3Mpl5zIqtRerI89PX1CCeuiRWUp5NLzao4nNCfc4zmhpmg9nanLakHOVm+mp ZibjBErCDvV9gJ2TvbxS1tQWMD11l2mXuDSiz9BjWHw3LKu/DG2eZ+xKy/pTw71mtR1D 03rx96RFkDejJn+4HuYSx1DjUJV9RJt9mlSjYiKWUW7qbrxhexCjcDCBN6t78Pq52VCP AaXyfK3uqWMsqHkfKD9Z7zDY6CNlk0o+d1DGcH/LA2upPGMKAYQw19mY8Sc7fh7CDcE/ DhhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q2L52N2b0L+R3rWfSfQEVZ7mQEq57tNFtPEOTIDiHOA=; b=MgcHRECC3yVKJ5h38OKHFnCN14+eTxC5Fnu4kw3+i3dvsGZbrcIoiPFeN44bmxQbaf E9aEbnoZjB96rIcR8pvRKpFLmCJAvw2IwU7utPneQ9seN/jUTM5QEoH4IlmNNQo147Cc ZACh9o1SqsdSmncdfxSxUBhNV9yOf9Pu919Ek6tiG/j39DLFb+7OfflbO+cGxa003LZ0 E1WqVQ2sd+4lWCr7aBm4+QqszqNzOHcn/AbcyBDM4JJjyjpf1Z6qeLeRTmCz0JlQd8ar RReAVePHhmp2nS4dRBdZLtD7VjGAmbEk38bzTPN+jQcW6wOwoKPNrmAV2+tR6w5JR7VV njFg== X-Gm-Message-State: APjAAAUukmduSfTtYtjUw1dUMO+Daf7vn3P0kDTznRmkq93YnG5ypkZw wmHBB9C80GIz34xNp1ni1ryCraUyY2E= X-Google-Smtp-Source: APXvYqxOfNjeEoc2FJ+G+u8hlq/utn3eGvyzkTzThaZAMwMePBf3lxlizgH4pVCSBNOLNP2zqL4k9w== X-Received: by 2002:a2e:924d:: with SMTP id v13mr18211410ljg.226.1570443294463; Mon, 07 Oct 2019 03:14:54 -0700 (PDT) Received: from [192.168.1.125] (62-65-176.netrun.cytanet.com.cy. [62.228.65.176]) by smtp.googlemail.com with ESMTPSA id f21sm3302739lfm.90.2019.10.07.03.14.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2019 03:14:53 -0700 (PDT) Subject: Re: bug#13475: 24.2.91; accept-process-output hangs emacs on killed sub-process To: Lars Ingebrigtsen References: <87boco3sqi.fsf@gmail.com> <87eeztg2s9.fsf@gnus.org> <28c1cd1f-1101-1402-6fe8-b9a677539568@yandex.ru> <878spxckep.fsf@gnus.org> From: Dmitry Gutov Message-ID: Date: Mon, 7 Oct 2019 13:14:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <878spxckep.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 13475 Cc: Vitalie Spinu , 13475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On 07.10.2019 6:19, Lars Ingebrigtsen wrote: > By "was closed" here, I think what's meant is "was closed before TIMEOUT > expired". If the connection is closed before the call, we wait for the > entire timeout. And return nil? That sounds kinda brittle, as an API. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 08 12:37:48 2019 Received: (at 13475) by debbugs.gnu.org; 8 Oct 2019 16:37:49 +0000 Received: from localhost ([127.0.0.1]:51348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHsUe-000707-JZ for submit@debbugs.gnu.org; Tue, 08 Oct 2019 12:37:48 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHsUc-0006zy-EG for 13475@debbugs.gnu.org; Tue, 08 Oct 2019 12:37:47 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHsUZ-0007RW-5C; Tue, 08 Oct 2019 18:37:45 +0200 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#13475: 24.2.91; accept-process-output hangs emacs on killed sub-process References: <87boco3sqi.fsf@gmail.com> <87eeztg2s9.fsf@gnus.org> <28c1cd1f-1101-1402-6fe8-b9a677539568@yandex.ru> <878spxckep.fsf@gnus.org> Date: Tue, 08 Oct 2019 18:37:42 +0200 In-Reply-To: (Dmitry Gutov's message of "Mon, 7 Oct 2019 13:14:50 +0300") Message-ID: <87r23nyyzt.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > On 07.10.2019 6:19, Lars Ingebrigtsen wrote: >> By "was closed" here, I think what's meant is "was closed before TIMEOUT >> expired". If the connection is closed before the call, we wait for the >> [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 13475 Cc: Vitalie Spinu , 13475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > On 07.10.2019 6:19, Lars Ingebrigtsen wrote: >> By "was closed" here, I think what's meant is "was closed before TIMEOUT >> expired". If the connection is closed before the call, we wait for the >> entire timeout. > > And return nil? That sounds kinda brittle, as an API. Yeah, you have to check whether the process is alive before calling the function if you're looping over it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Jun 23 04:12:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Nov 2019 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator