From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: ECM for possible process-status/sentinel bug Date: Sun, 22 Aug 2021 20:25:38 -0500 Message-ID: <87eeal3qb1.fsf@alphapapa.net> References: <87im02ew4n.fsf@alphapapa.net> <87pmu547iz.fsf@alphapapa.net> <83wnodwae9.fsf@gnu.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="14446"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 23 03:26:19 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mHyjD-0003bM-7W for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Aug 2021 03:26:19 +0200 Original-Received: from localhost ([::1]:46316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHyjB-0003Lw-Km for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 21:26:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHyih-0002cf-54 for emacs-devel@gnu.org; Sun, 22 Aug 2021 21:25:47 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:54790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHyif-0002SH-Ff for emacs-devel@gnu.org; Sun, 22 Aug 2021 21:25:46 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mHyid-0002sC-3l for emacs-devel@gnu.org; Mon, 23 Aug 2021 03:25:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272861 Archived-At: Eli Zaretskii writes: >> From: Adam Porter >> Date: Sun, 22 Aug 2021 14:13:40 -0500 >> >> So I'm left again with the test case I posted in the first message in >> this thread. In order to avoid filing useless reports, I was hoping to >> get some advice along the lines of, "Yes, that might be a bug, please >> report it as one," or "No, you just misunderstand how sentinels are >> intended to work." If someone could so advise me, I'd be grateful. >> Otherwise I guess I'll report a bug in a day or so. > > Please report a bug with the simplest recipe to reproduce it. Thanks. I filed it here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50166 Lars narrowed down the apparent problem quickly, which may be a documentation issue. However, if it is, I'm left to wonder what the right way is to capture the STDERR of a (make-process) process while also waiting on all of the process's associated processes to exit, have their output collected into the designated buffers, and their sentinels run. The manual says to use (while (accept-process-output PROCESS)), but apparently that may return while a process's :stderr process is still running, or something like that... (The fact that "process" seems to have some extra meanings in the context--it refers not only to the program called with `make-process'--seems to add to the difficulty of reasoning and communicating about these issues.)