Browse Source

handle -pidfile parameter correctly

pull/319/head
orignal 9 years ago
parent
commit
7f08bbe938
  1. 2
      DaemonLinux.cpp

2
DaemonLinux.cpp

@ -83,7 +83,7 @@ namespace i2p
// Pidfile // Pidfile
// this code is c-styled and a bit ugly, but we need fd for locking 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 != "") { if (pidfile != "") {
pidFH = open(pidfile.c_str(), O_RDWR | O_CREAT, 0600); pidFH = open(pidfile.c_str(), O_RDWR | O_CREAT, 0600);
if (pidFH < 0) if (pidFH < 0)

Loading…
Cancel
Save