From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Infinite loop in pop3-retr Date: Mon, 30 May 2011 22:12:58 -0300 Message-ID: References: <4dde12c597bf00.88976681@wp.pl> <87d3j4lc7u.fsf@vitiris.tt.com.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306842583 17061 80.91.229.12 (31 May 2011 11:49:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 11:49:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 31 13:49:39 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRNS7-0006zN-Mn for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 13:49:39 +0200 Original-Received: from localhost ([::1]:58557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRNS7-00039f-Bg for ged-emacs-devel@m.gmane.org; Tue, 31 May 2011 07:49:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRNRv-0002rj-Ii for emacs-devel@gnu.org; Tue, 31 May 2011 07:49:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRNRu-0000Bp-E0 for emacs-devel@gnu.org; Tue, 31 May 2011 07:49:27 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:46992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRNRu-0000Bf-7u for emacs-devel@gnu.org; Tue, 31 May 2011 07:49:26 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p4VBnLmP008947; Tue, 31 May 2011 07:49:23 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 60A9E66118; Mon, 30 May 2011 22:12:58 -0300 (ART) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 30 May 2011 19:21:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3873=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3873> : streams <642603> : uri <884223> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139959 Archived-At: >>> Firstly, I think that probably there is a simpler way to check if >>> process is active than by testing process status but I don't know that. >> Actually, no, this is the way to do it. > Which reminds me. Instead of sprinkling all the code with > (memq (process-status process) '(open run)) > which isn't very... pretty... (there's probably hundreds variations of > these invocations in Gnus and the other network oriented packages) > wouldn't it be nice if we had a nice, simple function like > `process-alive-p' or something like that? It would just basically be > (defun process-alive-p (process) > (memq (process-status process) > '(run open listen connect))) Sounds fine to me. Tho I wonder if `stop' should be in this list. Stefan