Improve error logging for the fifo creation

This commit is contained in:
Tor Lillqvist 2016-04-12 17:57:58 +03:00
parent 5c6e209567
commit 745950ceb2

View file

@ -1319,7 +1319,7 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
Log::debug("mkfifo(" + pipeLoolwsd + ")");
if (mkfifo(pipeLoolwsd.c_str(), 0666) < 0 && errno != EEXIST)
{
Log::syserror("Failed to create pipe FIFO [" + pipeLoolwsd + "].");
Log::syserror("Failed to create fifo [" + pipeLoolwsd + "].");
return Application::EXIT_SOFTWARE;
}
@ -1330,7 +1330,7 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
Log::debug("mkfifo(" + pipeNotify + ")");
if (mkfifo(pipeNotify.c_str(), 0666) < 0 && errno != EEXIST)
{
Log::syserror("Failed to create pipe FIFO [" + std::string(FIFO_ADMIN_NOTIFY) + "].");
Log::syserror("Failed to create fifo [" + pipeNotify + "].");
std::exit(Application::EXIT_SOFTWARE);
}