Explicitly cast sig_atomic_t child_pid to pid_t for kill()

This commit is contained in:
Andrea Mazzoleni 2026-08-26 10:47:19 +02:00
parent 64271ac429
commit 21ca93f8c1

View file

@ -362,7 +362,7 @@ static volatile sig_atomic_t child_pid = 0;
static void forward_signal(int sig)
{
if (child_pid > 0) {
kill(child_pid, sig);
kill((pid_t)child_pid, sig);
}
}
/* LCOV_EXCL_STOP */