David Nadlinger Mon, 10 Jun 2013 21:05:50 -0700
The test program is flawed; writeln() writes to stdout, and the redirection is to stdin.
Wouldn't stdin be fd 0?
David