[Chicken-users] posix:process hangup when reading process output (win)
From:
$)
Subject:
[Chicken-users] posix:process hangup when reading process output (win)
Date:
Wed, 25 Oct 2006 13:05:16 +0400
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:
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).