main: don't try to open unspecified pidfile
This commit is contained in:
parent
e18903a6b5
commit
077dbd5692
1 changed files with 3 additions and 0 deletions
3
main.c
3
main.c
|
@ -255,6 +255,9 @@ check_pidfile(void)
|
|||
FILE *in;
|
||||
int pid, count;
|
||||
|
||||
if (!pidfile[0])
|
||||
return;
|
||||
|
||||
in = UTI_OpenFile(NULL, pidfile, NULL, 'r', 0);
|
||||
if (!in)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue