Fix deadlock bug when daemonizing
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Tue, 8 Sep 2009 22:50:33 +0000 (18:50 -0400)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Tue, 8 Sep 2009 22:50:34 +0000 (18:50 -0400)
commit5d8d866fcaf50dbdf076a14b08fef0dece1fcbb9
treec10bbc7d11b2a1603828b09f8115b701b4630386
parent80ac98531f128309e5d7be4f044ef0347dcd938a
Fix deadlock bug when daemonizing

Closing stdin et. al breaks the assuption in spawnvem() that a newly
opened pipe is not one of the standard file descriptors. This lead
to stdout being closed in the child and so we got no output.
src/dmaster.c
src/dslave.c