]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Better error messages
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Apr 2020 00:53:08 +0000 (19:53 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 28 Apr 2020 00:53:08 +0000 (19:53 -0500)
src/lib/server/main_loop.c

index 105e0f1dad53f4cec4db0c221d0620ca6b5d76f2..e05aec3008cd0293d2e75516c2164544674bce1a 100644 (file)
@@ -263,27 +263,27 @@ int main_loop_init(void)
         *      signal handlers.
         */
        if (pipe(self_pipe) < 0) {
-               ERROR("Error opening internal pipe: %s", fr_syserror(errno));
+               ERROR("Error opening self-signal pipe: %s", fr_syserror(errno));
                return -1;
        }
        if ((fcntl(self_pipe[0], F_SETFL, O_NONBLOCK) < 0) ||
            (fcntl(self_pipe[0], F_SETFD, FD_CLOEXEC) < 0)) {
-               ERROR("Error setting internal flags: %s", fr_syserror(errno));
+               ERROR("Error setting self-signal pipe flags: %s", fr_syserror(errno));
                return -1;
        }
        if ((fcntl(self_pipe[1], F_SETFL, O_NONBLOCK) < 0) ||
            (fcntl(self_pipe[1], F_SETFD, FD_CLOEXEC) < 0)) {
-               ERROR("Error setting internal flags: %s", fr_syserror(errno));
+               ERROR("Error setting self-signal pipe flags: %s", fr_syserror(errno));
                return -1;
        }
-       DEBUG4("Created signal pipe.  Read end FD %i, write end FD %i", self_pipe[0], self_pipe[1]);
+       DEBUG4("Created self-signal pipe.  Read end FD %i, write end FD %i", self_pipe[0], self_pipe[1]);
 
        if (fr_event_fd_insert(NULL, event_list, self_pipe[0],
                               main_loop_signal_recv,
                               NULL,
                               NULL,
                               event_list) < 0) {
-               PERROR("Failed creating signal pipe handler");
+               PERROR("Failed creating self-signal pipe handler");
                return -1;
        }