1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-04 21:47:46 +03:00

debug: correcting check for error

Correct trace for erroring case of close.
This commit is contained in:
Zdenek Kabelac 2023-09-25 18:28:50 +02:00
parent e930ee93f7
commit d54deae0ad

View File

@ -234,7 +234,7 @@ static int _get_pid_starttime(int *pid, unsigned long long *starttime)
if ((e = read(fd, buf, sizeof(buf) - 1)) <= 0) if ((e = read(fd, buf, sizeof(buf) - 1)) <= 0)
log_sys_debug("read", statfile); log_sys_debug("read", statfile);
if (!close(fd)) if (close(fd))
log_sys_debug("close", statfile); log_sys_debug("close", statfile);
if (e <= 0) if (e <= 0)