From: Alejandro Forero Cuervo <[EMAIL PROTECTED]>
Subject: [Chicken-users] process-wait on pid returned by process
Date: Sat, 23 Feb 2008 12:04:12 -0800

> Anyone care to explain why this fails?
> 
>   (receive (in out pid)
>            (process "cat")
>     (close-output-port out)
>     (close-output-port in)

Are these both "close-output-port"? (I guess this is a typo)

>     (process-wait pid))
> 
> I get:
> 
> Error: (process-wait) waiting for child process failed - No child processes: 
> 7548
> 

closing both input and output ports will automatically do the
process-wait for you.


cheers,
felix




_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to