Hi!
I am working on windows system, Chicken v2, Build 41.
I try to start a process from scheme script and read what that process had
produced. My script hangs for unknown reasons. Here is a sample code:
(require-extension posix)
(define-values (p1 p2 pid) (process "ls"))
(define response (read-sring #f p1)) ; <--- hangs here
(process-wait pid)
If I try to read output line by line (i.e with (read-line p1)) everything
goes fine until the call to read-line following those call to read-line that
consumed the last line of output. It appears that input port summoned by
process function does not recognize EOF, am I right?
Things goes more weird when csi is running without a console window (I
believe CGI programs are started this way). In the later case process
function fails to apply IO redirection to the process started (a spawned
process owns a brand new console window and output is showing there).