1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-17 15:49: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;
}
// close stdin/stdout/stderr descriptors
freopen("/dev/null", "r", stdin);
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "w", stderr);
// point std{in,out,err} descriptors to /dev/null
stdin = freopen("/dev/null", "r", stdin);
stdout = freopen("/dev/null", "w", stdout);
stderr = freopen("/dev/null", "w", stderr);
}
// Pidfile