On Fri, Sep 18, 2026 at 02:16:54PM +0200, Peter Bex via Chicken-users wrote:
> I think you got the two ports swapped.  An input-port is a port from
> which you can read, an output-port is a port to which you can write.
> In other words, it's from the perspective of the caller, not the callee.
>
> In your code, you write to the input-port and read from the output-port.

Correction, I was wrong there: process-output-port *does* return a
port corresponding to stdout, but it's an input-port (oh, man...)
because you can read from it.

However, you are using close-output-port on the input-port and
close-input-port on the output-port.

Cheers,
Peter

Reply via email to