]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Write a message saying we tried to signal ourselves but failed
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 13 May 2024 04:06:17 +0000 (22:06 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 13 May 2024 13:42:23 +0000 (07:42 -0600)
src/lib/server/main_loop.c

index 6e889f26d1449bdb79eab8cb380659f090f395a6..291a9a649e607ad027408f6ba8d02665a69cd1a7 100644 (file)
@@ -97,7 +97,10 @@ void main_loop_signal_raise(int flag)
 
        buffer[0] |= flag;
 
-       if (write(self_pipe[1], buffer, 1) < 0) fr_exit(0);
+       if (write(self_pipe[1], buffer, 1) < 0) {
+               FR_FAULT_LOG("Failed to write to self-pipe: %s", fr_syserror(errno));
+               fr_exit(0);
+       }
 }
 
 static void main_loop_signal_process(int flag)
@@ -289,4 +292,3 @@ int main_loop_init(void)
 
        return 0;
 }
-