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.bugs Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs Date: Thu, 22 Jul 2021 08:47:28 +0300 Message-ID: <83fsw6528f.fsf@gnu.org> References: <87mtqfzpbl.fsf@hm.sivalik.com> <83mtqf4gab.fsf@gnu.org> <87k0ljnyjj.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35794"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rajeev.jnk@sivalik.com, 49682@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 07:48:12 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 1m6RZ6-00099E-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 07:48:12 +0200 Original-Received: from localhost ([::1]:52750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6RZ4-0003mB-8L for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 01:48:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6RYw-0003m2-DQ for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 01:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6RYv-0005i5-QD for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 01:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6RYv-00055m-O5 for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 01:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2021 05:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49682 X-GNU-PR-Package: emacs Original-Received: via spool by 49682-submit@debbugs.gnu.org id=B49682.162693287819561 (code B ref 49682); Thu, 22 Jul 2021 05:48:01 +0000 Original-Received: (at 49682) by debbugs.gnu.org; 22 Jul 2021 05:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:39182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6RYr-00055R-Jc for submit@debbugs.gnu.org; Thu, 22 Jul 2021 01:47:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6RYm-00055B-UR for 49682@debbugs.gnu.org; Thu, 22 Jul 2021 01:47:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42876) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6RYh-0005WI-9D; Thu, 22 Jul 2021 01:47:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2763 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 1m6RYg-0001Ay-Tl; Thu, 22 Jul 2021 01:47:47 -0400 In-Reply-To: <87k0ljnyjj.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 21 Jul 2021 23:32:16 +0200) 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:210492 Archived-At: > From: Lars Ingebrigtsen > Cc: Rajeev N , 49682@debbugs.gnu.org > Date: Wed, 21 Jul 2021 23:32:16 +0200 > > Eli Zaretskii writes: > > >> (let () (run-with-timer 0 nil #'url-retrieve "https://www.gnu.org/" > >> #'ignore) (diary-mail-entries)) > > > > Don't do that, because it will hurt. Mixing timers with subprocesses > > is asking for trouble. > > That's not my experience, really -- url-queue.el is based around firing > off `url-retrieve' from timers, and I've never seen any problems. Sheer luck, IMO. I don't really understand the need to run subprocesses from timers, since subprocess support already includes async operation and built-in time-outs.