[Chicken-users] process-wait on pid returned by process

2008-02-23 Thread Alejandro Forero Cuervo
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

Re: [Chicken-users] process-wait on pid returned by process

2008-02-23 Thread Alejandro Forero Cuervo
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

Re: [Chicken-users] process-wait on pid returned by process

2008-02-23 Thread Felix Winkelmann
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

Re: [Chicken-users] process-wait on pid returned by process

2008-02-24 Thread Alejandro Forero Cuervo
> 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

Re: [Chicken-users] process-wait on pid returned by process

2008-02-24 Thread felix winkelmann
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