2 * transsip - the telephony network
3 * By Daniel Borkmann <daniel@transsip.org>
4 * Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 * Swiss federal institute of technology (ETH Zurich)
6 * Subject to the GPL, version 2.
15 static inline void register_signal(int signal
, void (*handler
)(int))
18 struct sigaction saction
;
22 sigfillset(&block_mask
);
23 saction
.sa_handler
= handler
;
24 saction
.sa_mask
= block_mask
;
25 saction
.sa_flags
= SA_RESTART
;
27 sigaction(signal
, &saction
, NULL
);
30 #endif /* SIGNALS_H */