chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Wierd behaviour of process.


From: Unknown
Subject: Re: [Chicken-users] Wierd behaviour of process.
Date: Sun, 14 Jan 2007 23:48:52 -0800
User-agent: Mutt/1.5.13 (2006-08-11)

On Mon, Jan 15, 2007 at 08:43:27AM +0100, felix winkelmann wrote:
> On 1/15/07, Robin Lee Powell <address@hidden> wrote:
> >On Mon, Jan 15, 2007 at 08:16:58AM +0100, felix winkelmann wrote:
> >> On 1/14/07, Robin Lee Powell <address@hidden> wrote:
> >> >
> >> >That made me think that doing a "wait" on the process *is*
> >> >behaviour I want, and I should do that.  However, process-wait
> >> >throws an error if the process has already exited, and I can't
> >> >seem to trap it.  I tried:
> >> >
> >> >(condition-case (process-wait pid) (var () #t))
> >> >
> >>
> >> This should work. Are you running this interactively?
> >
> >If by interactively you mean with csi: nope; it's in the middle of a
> >very complex system with thousands of lines of code in at least 4
> >languages.  :-)
> >
> 
> Oh, great! ;-)
> 
> Do you use with-exception-handler a lot? 

This is my first long piece of Scheme code.  :-)

So, no.

> Does the process-wait inside an exception-handler work when run
> stand-alone (without the rest of the code)?
> 
> Can you test whether the process is still alive, before doing the
> test (perhaps by checking the /proc directory or through some
> other hacks)?

Ouch.  That's all going to take a while; I'll see if I can get back
to you.

-Robin

-- 
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
Reason #237 To Learn Lojban: "Homonyms: Their Grate!"
Proud Supporter of the Singularity Institute - http://singinst.org/




reply via email to

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