1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdaemonclient: Use log_sys_error in place of perror.

This commit is contained in:
Petr Rockai 2012-09-26 13:11:13 +02:00
parent 7a2a1a7456
commit 4ece923a4b

View File

@ -60,7 +60,7 @@ error:
h.error = errno;
if (h.socket_fd >= 0)
if (close(h.socket_fd))
perror("close");
log_sys_error("close", "daemon_open");
if (r.cft)
daemon_reply_destroy(r);
h.socket_fd = -1;