* use freopen() instead close()/open() : avoid potential fd leak
* use freopen() instead close()/open() : avoid potential fd leak

majestrate/i2pd,PurpleI2P/i2pd,PurpleI2P/i2pd,brain5lug/i2pd,manasb/i2pd,hypnosis-i2p/i2pd,PurpleI2P/i2pd,hypnosis-i2p/i2pd,majestrate/i2pd,majestrate/i2pd,majestrate/i2pd,PurpleI2P/i2pd,brain5lug/i2pd,manasb/i2pd,brain5lug/i2pd,brain5lug/i2pd,majestrate/i2pd,hypnosis-i2p/i2pd,hypnosis-i2p/i2pd,hypnosis-i2p/i2pd