From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#50166: 28.0.50; ECM for possible process-status/sentinel bug Date: Mon, 23 Aug 2021 00:18:31 +0200 Message-ID: <8735r1w2bs.fsf@gnus.org> References: <871r6lxjjt.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25459"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50166@debbugs.gnu.org To: Adam Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 23 00:19:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mHvo7-0006Q0-0P for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Aug 2021 00:19:11 +0200 Original-Received: from localhost ([::1]:38106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvo5-0003PK-Qk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Aug 2021 18:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvny-0003P4-4b for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 18:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvnx-0004H9-Sf for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 18:19:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvnx-0008I2-P2 for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 18:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Aug 2021 22:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50166 X-GNU-PR-Package: emacs Original-Received: via spool by 50166-submit@debbugs.gnu.org id=B50166.162967073731856 (code B ref 50166); Sun, 22 Aug 2021 22:19:01 +0000 Original-Received: (at 50166) by debbugs.gnu.org; 22 Aug 2021 22:18:57 +0000 Original-Received: from localhost ([127.0.0.1]:39967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvno-0008Hf-GX for submit@debbugs.gnu.org; Sun, 22 Aug 2021 18:18:56 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:37540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvnj-0008HO-Iy for 50166@debbugs.gnu.org; Sun, 22 Aug 2021 18:18:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=crMeMDKLbZWWgpvjUw9//INVLy+FL+7/fc7rieIepsg=; b=gMp/XdONp1atRVHBq0f+kXy0sP T3gk84lFq9U6hg+vk8KGXJ7d8F3Mim7n5WkOi46jVHbZVL9syaP62WdSXvp8H6pgAXxgzv/BxvUuy hQZg79M2WMFbGJXxk/BpWIu0poL/0rZLzQA201JM6Oa8Gz5C8YjMxWOjg/5q/FkDrjs8=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mHvnT-0003iv-W0; Mon, 23 Aug 2021 00:18:36 +0200 In-Reply-To: (Adam Porter's message of "Sun, 22 Aug 2021 17:01:01 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212446 Archived-At: Adam Porter writes: > According to https://orgmode.org/worg/org-faq.html#ecm: > > This is a French acronym used by some mailing list members; it stands > for "Exemple Complet Minimal", or "Complete Minimal Example". I see. :-) The example wasn't that minimal, though, so I shortened it a bit to understand it better: ;;; -*- lexical-binding: t; -*- (defun start-curls () (interactive) (dotimes (i 10) (let* ((process-buffer (generate-new-buffer (format "argh-curl-%02d" i))) (process (make-process :name "argh-" :buffer process-buffer :coding 'binary :command '("curl" "--silent" "--compressed" "--location" "--dump-header" "-" "--config" "-") :connection-type 'pipe :sentinel #'argh--sentinel :stderr process-buffer))) (process-send-string process "--url https://httpbin.org/get\n") (process-send-eof process) process))) (defun argh--sentinel (process status) (with-current-buffer (process-buffer process) (when (equal (string-clean-whitespace status) "finished") (message "status: %s %s %S" (string-clean-whitespace status) (process-status process) process) (kill-buffer (current-buffer))))) And, indeed, after `M-x start-curls' I'm usually prompted for a Buffer "argh-curl-09<2>" has a running process; kill it? (yes or no) However, the status messaged by all those say: status: finished exit #> So somehow process-status can claim that the status is `exit', but `kill-buffer' then says that the process is alive... Most puzzling. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no