fix a diff error

This commit is contained in:
wangzelin.wzl
2021-07-12 14:04:27 +08:00
parent 01321d90c7
commit e47392397a

View File

@ -1149,7 +1149,7 @@ static int pidfile_test(const char* pidfile)
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
int fd = open(pidfile, O_RDONLY); int fd = open(pidfile, O_RDONLY);
if (fd < 0) { if (fd < 0) {
ret = OB_FILE_NOT_EXIST; ret = OB_FILE_NOT_EXIST;
} else { } else {
if (lockf(fd, F_TEST, 0) != 0) { if (lockf(fd, F_TEST, 0) != 0) {