From 8d594c409c33884a00be578543589d8207338413 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Thu, 14 May 2015 15:50:16 +0200 Subject: [PATCH] libdaemon: fprintf(stderr...) -> ERROR() log data structures are ready. so why not pass error messages through ERROR() --- libdaemon/server/daemon-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c index 6e497b8cc..bedd3b239 100644 --- a/libdaemon/server/daemon-server.c +++ b/libdaemon/server/daemon-server.c @@ -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)