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.bugs Subject: bug#50166: 28.0.50; ECM for possible process-status/sentinel bug Date: Sun, 22 Aug 2021 20:31:08 -0500 Message-ID: References: <871r6lxjjt.fsf@gnus.org> <8735r1w2bs.fsf@gnus.org> <87y28tumzz.fsf@gnus.org> <87pmu5umq7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40824"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50166@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 23 03:32:22 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 1mHyp3-000APZ-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Aug 2021 03:32:21 +0200 Original-Received: from localhost ([::1]:49580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHyp1-0005kc-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Aug 2021 21:32:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHyok-0005kA-4x for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 21:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHyoj-0006iJ-SP for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 21:32:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHyoj-0008OU-Kb for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 21:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Aug 2021 01:32: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.162968228730617 (code B ref 50166); Mon, 23 Aug 2021 01:32:01 +0000 Original-Received: (at 50166) by debbugs.gnu.org; 23 Aug 2021 01:31:27 +0000 Original-Received: from localhost ([127.0.0.1]:40086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHyoA-0007xX-Vf for submit@debbugs.gnu.org; Sun, 22 Aug 2021 21:31:27 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:38834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHyo9-0007ri-5P for 50166@debbugs.gnu.org; Sun, 22 Aug 2021 21:31:26 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id x27so34500840lfu.5 for <50166@debbugs.gnu.org>; Sun, 22 Aug 2021 18:31:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rXiv/VkAOofrOtdWhOMdqdehl39jH6L7bktndZOeKsk=; b=Jw8iQsy2MWC1Awv9uNovnZfckqxu3rVn4wqeT2lcR91+auu01+JqIC77jyiCXTtMEf O+MthugR4pj57HtDAfDcSNPjOyHL1BZANYrzWLaf5QyaNtttqkcMMAzdavN3KQbqPtEG HmzS9m3Z9Iy+0skiJ7hSAkAwTioAR/qsMs5mPcchPqf9Guew2F0TJWewO6unopDUX8Tv OqYqt+8SPZeVlgSQFXEv87VX/3sv7XvbW9cDleaEOTdYMMSDL6otzpPChvxqkYklBDI3 GvqEn0ihWoJyeTpdXBDH/7NbzeDIU1Rn/1aUT4jxhNXrXZraBPYKLVwBS6C15LPAwMIu 6eMw== X-Gm-Message-State: AOAM531oJAlUKSwVc3xZ7buLAgX0KVcVqTMN81/gpnfYA1M65sXdAIQr H6TUIOoLao0E3d8Fra3BgU3U5o/mwDG/9N++KVI= X-Google-Smtp-Source: ABdhPJyxwbSZrYKYy5eLl2myCBOAseJDHzJQ3X/KI+vNM12IxSyBTV90lriaMIWCriieV+fb+nbSKQ14tfByB61TG18= X-Received: by 2002:ac2:4146:: with SMTP id c6mr24950843lfi.305.1629682279058; Sun, 22 Aug 2021 18:31:19 -0700 (PDT) In-Reply-To: <87pmu5umq7.fsf@gnus.org> 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:212457 Archived-At: On Sun, Aug 22, 2021 at 5:40 PM Lars Ingebrigtsen wrote: > > Lars Ingebrigtsen writes: > > > Without that :stderr in make-process, I see no peculiarities here. > > So I suspect that this is working as intended? But the :stderr entry in > the doc string should mention this... Thanks for investigating that, Lars. I guess it would be a good thing if this turned out to be just a documentation issue. But 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.) As an aside, I tried removing the :stderr argument to make-process in my plz.el library, but unfortunately it did not help the problem I'm observing there: that running ERT tests in series, with curl processes started in quick succession (though only one at a time) leads to failing tests, apparently related to sentinels not being called after a process's output has been collected (and running the tests individually almost always succeeds). So I don't know if the problem described in this report is related to that, or whether it's a bug in my code, my understanding, or a different process-related issue in Emacs. It "feels like" they could be loosely related, but what do I know. :)