uloop: fix typo in signal handling rework
authorFelix Fietkau <nbd@nbd.name>
Mon, 27 Nov 2023 17:29:43 +0000 (18:29 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 27 Nov 2023 17:30:01 +0000 (18:30 +0100)
Fixes procd issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
uloop.c

diff --git a/uloop.c b/uloop.c
index 63428db041d7caa7674565017bb99a8928636815..ebd78398fe1f054e0376dab833cea07ef14d336a 100644 (file)
--- a/uloop.c
+++ b/uloop.c
@@ -466,7 +466,7 @@ static void uloop_signal_wake(int signo)
 {
        uint8_t sigbyte = signo;
 
-       if (signo == ECHILD)
+       if (signo == SIGCHLD)
                do_sigchld = true;
 
        do {