1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Don't unblock signals again.

A late signal could kill the process otherwise.
This commit is contained in:
Ludwig Ortmann 2014-01-29 15:13:46 +01:00
parent 2c80f68d62
commit 0766b92f7b

View File

@ -357,9 +357,6 @@ int register_interrupt(int sig, void (*handler)(void))
if (sigdelset(&_native_sig_set, sig)) {
err(EXIT_FAILURE, "register_interrupt: sigdelset");
}
if (sigaddset(&_native_sig_set_dint, sig)) {
err(EXIT_FAILURE, "register_interrupt: sigaddset");
}
native_irq_handlers[sig].func = handler;
@ -391,9 +388,6 @@ int unregister_interrupt(int sig)
if (sigaddset(&_native_sig_set, sig) == -1) {
err(EXIT_FAILURE, "unregister_interrupt: sigaddset");
}
if (sigdelset(&_native_sig_set_dint, sig) == -1) {
err(EXIT_FAILURE, "unregister_interrupt: sigdelset");
}
native_irq_handlers[sig].func = NULL;