Anyone care to explain why this fails?
(receive (in out pid)
(process "cat")
(close-output-port out)
(close-output-port in)
(process-wait pid))
I get:
Error: (process-wait) waiting for child process failed - No child processes:
7548
This is in Chicken 2.731 and is curr
Ah, OK, so apparently this is because Chicken will do the waitpid
syscall automatically when both in and out get closed.
Alejo.
http://azul.freaks-unidos.net/
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listi
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")
> (clos
> Are these both "close-output-port"? (I guess this is a typo)
Oops, yes, sorry, that was a typo in my example. Though, hmm,
shouldn't Chicken throw an error in that case?
> closing both input and output ports will automatically do the
> process-wait for you.
Ahh, OK. That looks good.
What h
On Sun, Feb 24, 2008 at 7:10 PM, Alejandro Forero Cuervo
<[EMAIL PROTECTED]> wrote:
>
> > Are these both "close-output-port"? (I guess this is a typo)
>
> Oops, yes, sorry, that was a typo in my example. Though, hmm,
> shouldn't Chicken throw an error in that case?
>
Yeah, it should.
>
> > c