summaryrefslogtreecommitdiff
path: root/xutils.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 11:38:17 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 11:38:17 +0200
commit57968a8ab19b45b5d128656f6bed2581aee2ef22 (patch)
tree48e9c560f6f9ffab29debf2cffaaad1acd331c55 /xutils.c
parentab9d73629872a474d9194177fa4c9c8cdabe9a44 (diff)
sig: add signal handling functions
Add an extra file for signal handling functions. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'xutils.c')
-rw-r--r--xutils.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/xutils.c b/xutils.c
index d53a3e7..35f9092 100644
--- a/xutils.c
+++ b/xutils.c
@@ -72,34 +72,6 @@ int set_epoll_descriptor2(int fd_epoll, int action, int fd_toadd, int events)
return epoll_ctl(fd_epoll, action, fd_toadd, &ev);
}
-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);
-}
-
void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec,
unsigned long usec)
{