From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: accept-process-output throws Date: Wed, 24 Nov 2021 05:25:59 +0200 Message-ID: <838rxe9quw.fsf@gnu.org> References: <29A79E00-3117-4F18-BB4F-3ADD2DBB0806@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38012"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: JD Smith Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 24 04:26:59 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 1mpivx-0009at-Ms for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Nov 2021 04:26:57 +0100 Original-Received: from localhost ([::1]:46266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpivv-0005dN-Rk for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 22:26:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpiv4-0004wt-6H for emacs-devel@gnu.org; Tue, 23 Nov 2021 22:26:02 -0500 Original-Received: from [2001:470:142:3::e] (port=43678 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpiv3-0008Cm-Tz; Tue, 23 Nov 2021 22:26:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OUUjGUT2ss86FyuTOOIb6C9aevssHAulDM3kIb6zyNA=; b=mqEFXIMdq/pd AQYmlQ1Jt+xewcF2soGlpeBrJXxMol7ymHGIQqQ2R9gLoxww52lpZX4gWdZmPgzW/X68ES7PJw0Oj tXpOxj8k+/yAzE0krO23VpxZPG6hKZfvekspujL4wBdKM7HmZXyP95FLK4PjPff7ZjRMTp5bG357e 29NJNbOE+HR5Gi9NCU+duSUINA1Zb6tY8grunogR/c4Ac2a/QdFs/4HQJOw0W55lKeV47dwCOCPX+ K+NUklzSq7Plb1ygNbOri5E9yeFrlfcwHtULdFAd76dTFx/9u9bCBMWB7hKfNeD/Ox6NZmc1MeuAj u1crnb1wJYM+G4Y6K4iXBQ==; Original-Received: from [87.69.77.57] (port=3262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpiv3-0005i5-KP; Tue, 23 Nov 2021 22:26:01 -0500 In-Reply-To: <29A79E00-3117-4F18-BB4F-3ADD2DBB0806@gmail.com> (message from JD Smith on Tue, 23 Nov 2021 15:36:38 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:279976 Archived-At: > From: JD Smith > Date: Tue, 23 Nov 2021 15:36:38 -0500 > > > [1:text/plain Show] > > > [2:text/html Hide Save:noname (1kB)] > > I find that, in a loop like: > > (unwind-protect > (while waiting-for-output > (accept-process-output process)) > (if waiting-for-output > (warn "accept-process-output exited non-locally!"))) > > i.e. waiting for an async process (iPython), accept-process-output (emacs 27.2) sometimes exits > non-locally. I checked for any signals that might cause this (none), and then I suspected re-entering a-p-e > could throw, so guarded against that, but still no luck. > > Does anyone know any other reasons that accept-process-output would (occasionally) exit non-locally? Is > this expected? Is this in "emacs -Q"? If so, how did you start the process, and what do you have in the process-filter and process-sentinel functions for this process? IOW, please tell more about the situation, since it is not yet clear which code could be involved in this.