From: Roland Giersig <RG<iersig@cp...> - 2006-07-11 15:35:29
Fixed hanging spawn on AIX (and others).
Closing the pty slave in the parent would hang if the spawned child
already wrote something to the pty. I added another sync via pipe to
make sure that the parent first closes the slave before the child