Reverting this change, Linux does not define _getpid.
This commit is contained in:
@@ -149,7 +149,7 @@ main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
ofstream pidStream(pidFile.c_str(), ios_base::out | ios_base::trunc);
|
ofstream pidStream(pidFile.c_str(), ios_base::out | ios_base::trunc);
|
||||||
if (!pidStream.fail())
|
if (!pidStream.fail())
|
||||||
pidStream << _getpid();
|
pidStream << getpid();
|
||||||
else
|
else
|
||||||
LOG_ERROR("Could not create process id file \"" << pidFile << "\"!");
|
LOG_ERROR("Could not create process id file \"" << pidFile << "\"!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user