mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
handle -pidfile parameter correctly
This commit is contained in:
parent
81b2f2114d
commit
7f08bbe938
@ -83,7 +83,7 @@ namespace i2p
|
||||
|
||||
// Pidfile
|
||||
// this code is c-styled and a bit ugly, but we need fd for locking pidfile
|
||||
pidfile = i2p::util::config::GetArg("pidfile", "");
|
||||
pidfile = i2p::util::config::GetArg("-pidfile", "");
|
||||
if (pidfile != "") {
|
||||
pidFH = open(pidfile.c_str(), O_RDWR | O_CREAT, 0600);
|
||||
if (pidFH < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user