child receiver process to prevent some hangs on Cygwin. Anthony
Heading discovered the workaround first and suggested 30ms, and
Greger Cronquist had better luck with 100ms.
* Prevent "Connection reset by peer" messages from Cygwin. (Randy O'Meara)
+ * Prevent some hangs at the end of a run on Cygwin. (Anthony Heading)
+
INTERNAL:
* Many code cleanups and improved internal documentation. (Martin
io_flush();
io_set_error_fd(-1);
+ /* workaround for cygwin hangs; wait to make sure child is ready */
+ msleep(100);
kill(pid, SIGUSR2);
wait_process(pid, &status);
return status;