Fixed wrong file open mode.
This commit is contained in:
parent
0a33174803
commit
063c8f904a
@ -2057,7 +2057,7 @@ bool pid_file_exists()
|
||||
{
|
||||
int fd, b;
|
||||
|
||||
if((fd = open(pathbuf, O_RDONLY)) == -1)
|
||||
if((fd = open(pathbuf, O_RDWR)) == -1)
|
||||
{
|
||||
char* logerr = "Failed to open PID file '%s'.";
|
||||
snprintf(logbuf,sizeof(logbuf),logerr,pathbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user