1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-17 19:59:57 +00:00

* fix compile warnings: reopen() usage

This commit is contained in:
hagen 2016-06-01 00:00:00 +00:00
parent 1b2ac38a50
commit f7ca44cad8

View File

@ -73,10 +73,10 @@ namespace i2p
return false; return false;
} }
// close stdin/stdout/stderr descriptors // point std{in,out,err} descriptors to /dev/null
freopen("/dev/null", "r", stdin); stdin = freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout); stdout = freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr); stderr = freopen("/dev/null", "w", stderr);
} }
// Pidfile // Pidfile