]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/main.c: send READY notification only on Linux
authorAleš Mrázek <ales.mrazek@nic.cz>
Tue, 18 Nov 2025 13:06:39 +0000 (14:06 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Wed, 26 Nov 2025 17:28:05 +0000 (18:28 +0100)
daemon/main.c

index b1d76cfd1ef43057a8d65b4f9776527fa90b15ff..c65817665f20427a8e3e02a456851a2ba12be294 100644 (file)
@@ -192,10 +192,10 @@ static int run_worker(uv_loop_t *loop, struct args *args)
                uv_listen((uv_stream_t *)pipe, 16, io_tty_accept);
        }
 
-       /* Notify supervisor. */
+       /* Notify the supervisor only on Linux platform */
 #if ENABLE_LIBSYSTEMD
        sd_notify(0, "READY=1");
-#else
+#elif __linux__
        notify_ready("READY=1");
 #endif
        /* Run event loop */