sig.c: Skip unknown signals, e.g. musl libc does not define SIGCLD

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2020-04-26 11:29:19 +02:00
parent 9d9b6b5201
commit 37d92e87bc
+6
View File
@@ -142,9 +142,15 @@ static struct sigmap {
{ SIGPWR, "SIGPWR" },
/* Archaic names for compatibility. */
#ifdef SIGIO
{ SIGIO, "SIGIO" },
#endif
#ifdef SIGIOT
{ SIGIOT, "SIGIOT" },
#endif
#ifdef SIGCLD
{ SIGCLD, "SIGCLD" },
#endif
};
void mdadm_wait(void);