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:
parent
1b2ac38a50
commit
f7ca44cad8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user