emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Infinite loop in pop3-retr


From: Stefan Monnier
Subject: Re: Infinite loop in pop3-retr
Date: Mon, 30 May 2011 22:12:58 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]