got rid of STRIPCHARS compile-time variable to make the code more readable, and corresponding configure option. + make sure that CONFDIR from environment gets translated to absolute path
This commit is contained in:
@@ -580,7 +580,7 @@ int Pidfile::flopen()
|
||||
{
|
||||
const char *path = m_path.c_str();
|
||||
if ((m_fd = ::open(path, O_RDWR|O_CREAT, 0644)) == -1) {
|
||||
m_reason = "Open failed";
|
||||
m_reason = "Open failed: [" + m_path + "]: " + strerror(errno);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user