mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdaemon: fprintf(stderr...) -> ERROR()
log data structures are ready. so why not pass error messages through ERROR()
This commit is contained in:
parent
f653b123cf
commit
8d594c409c
@ -598,7 +598,7 @@ void daemon_start(daemon_state s)
|
||||
|
||||
/* Set Close-on-exec */
|
||||
if (!failed && fcntl(s.socket_fd, F_SETFD, 1))
|
||||
fprintf(stderr, "setting CLOEXEC on socket fd %d failed: %s\n", s.socket_fd, strerror(errno));
|
||||
ERROR(&s, "setting CLOEXEC on socket fd %d failed: %s\n", s.socket_fd, strerror(errno));
|
||||
|
||||
/* Signal parent, letting them know we are ready to go. */
|
||||
if (!s.foreground)
|
||||
|
Loading…
Reference in New Issue
Block a user