#include #include #include "sig.h" void register_signal(int signal, void (*handler)(int)) { sigset_t block_mask; struct sigaction saction; sigfillset(&block_mask); saction.sa_handler = handler; saction.sa_mask = block_mask; saction.sa_flags = SA_RESTART; sigaction(signal, &saction, NULL); } void register_signal_f(int signal, void (*handler)(int), int flags) { sigset_t block_mask; struct sigaction saction; sigfillset(&block_mask); saction.sa_handler = handler; saction.sa_mask = block_mask; saction.sa_flags = flags; sigaction(signal, &saction, NULL); } et-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@free-electrons.com>2016-11-06 10:35:41 +0100
committerGregory CLEMENT <gregory.clement@free-electrons.com>2016-11-19 09:16:45 +0100
commiteb94ec6423ad3bc2d9c0d9e40da245b422b003e4 (patch)
tree8b1cc15fe67ccae3799b076fa99e06c4bc07ca90
parent6f477f43f9de0a2e57d4ed3493021e0b0f7a477e (diff)
ARM: dts: armada-370-xp: Remove address from dsa unit name
The dsa node does not have a reg property, so remove the address from the unit name. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>