1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 12:24:19 +00:00

* add log message when fork failed

This commit is contained in:
hagen 2016-01-11 10:55:18 +00:00
parent 43eecdbb3f
commit 1819bd910a

View File

@ -52,7 +52,10 @@ namespace i2p
::exit (EXIT_SUCCESS); ::exit (EXIT_SUCCESS);
if (pid < 0) // error if (pid < 0) // error
{
LogPrint(eLogError, "Daemon: could not fork: ", strerror(errno));
return false; return false;
}
// child // child
umask(0); umask(0);