mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-04 08:17:30 +00:00
Few cents to get fullly console i2pd under Android
This commit is contained in:
1 parent
f11266972e
commit
6916147dda
4 files changed
+119
-13
No files matched your search
@@ -138,11 +138,14 @@ namespace i2p
|
||||
LogPrint(eLogError, "Daemon: could not create pid file ", pidfile, ": ", strerror(errno));
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef ANDROID
|
||||
if (lockf(pidFH, F_TLOCK, 0) != 0)
|
||||
{
|
||||
LogPrint(eLogError, "Daemon: could not lock pid file ", pidfile, ": ", strerror(errno));
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
char pid[10];
|
||||
sprintf(pid, "%d\n", getpid());
|
||||
ftruncate(pidFH, 0);
|
||||
|
||||
Reference in new issue
Block a user