[Top][All Lists]

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

Re: Checking Process Status

From: David Kastrup
Subject: Re: Checking Process Status
Date: 03 Feb 2003 23:29:52 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"CarlC" <> writes:

> "David Kastrup" <> wrote in message
> x5wukhv20i.fsf@lola.goethe.zz">news:x5wukhv20i.fsf@lola.goethe.zz...
> > Save the old value of the process' sentinel, enter your own function
> > there, and have that do its work as well as calling the saved
> > sentinel.
> Thanks for the quick response, David. I guess I need to know why
> this is the case. If I can get a process-status, why do I need to
> modify the compile sentinel. Does the existing sentinel wrap it up
> so that I can't access it's status? This doesn't appear to be the
> case when I am debugging. I can set a variable and view its status
> as "run". If I can do this, why can't I add a conditional to check
> this status outside of the sentinel? I just want to know if the
> compilation process is running. Thanks, again.

Your code programmed a busy wait.  That's ugly, butt-ugly.  Instead
just let your code be run when the process has finished.  Anyhow, if
at all, you would need to compare to symbols 'run and 'exit, not

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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