used wrong number in "on_caught_signal"

I used the siginfo->si_code as signal number, but that number is passed
to the function as "s".