On 6/20/05, Zbigniew <[EMAIL PROTECTED]> wrote: > Oh---for those without the chicken manual at their fingertips---in > (with-input-from-pipe COMMAND THUNK) the error code from COMMAND is > not available until after THUNK finishes and the pipe is closed. And > with-input-from-pipe just returns the results of THUNK. That is why > returning an error code would have to be done out of band (should it > be deemed desirable.) >
To be honest, I can't think of anything better than returning the status code in the moment. Here the obvious patch: 713c713,714 < (when (eq? -1 r) (posix-error #:file-error 'close-input/output-pipe "error while closing pipe" port)) ) ) ) --- > (when (eq? -1 r) (posix-error #:file-error 'close-input/output-pipe > "error while closing pipe" port)) > r) ) ) cheers, felix _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users