mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-04-14 12:08:44 +02:00
Fix checking unlink result
This commit is contained in:
parent
ba8410686b
commit
65099ca8d7
@ -37,7 +37,7 @@ unlink_lock_atexit(void)
|
||||
int res;
|
||||
|
||||
res = unlink(lock_file);
|
||||
if (res != 0 && res != ENOENT)
|
||||
if (res != 0 && errno != ENOENT)
|
||||
elog(WARNING, "%s: %s", lock_file, strerror(errno));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user