diff options
Diffstat (limited to 'arch/um/os-Linux/signal.c')
-rw-r--r-- | arch/um/os-Linux/signal.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c index 1c5267ec13b0..53593c8b9c34 100644 --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c | |||
@@ -85,6 +85,16 @@ void alarm_handler(int sig, struct sigcontext *sc) | |||
85 | set_signals(enabled); | 85 | set_signals(enabled); |
86 | } | 86 | } |
87 | 87 | ||
88 | void timer_init(void) | ||
89 | { | ||
90 | set_handler(SIGVTALRM, (__sighandler_t) alarm_handler, | ||
91 | SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, | ||
92 | SIGALRM, -1); | ||
93 | set_handler(SIGALRM, (__sighandler_t) alarm_handler, | ||
94 | SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, | ||
95 | SIGALRM, -1); | ||
96 | } | ||
97 | |||
88 | void set_sigstack(void *sig_stack, int size) | 98 | void set_sigstack(void *sig_stack, int size) |
89 | { | 99 | { |
90 | stack_t stack = ((stack_t) { .ss_flags = 0, | 100 | stack_t stack = ((stack_t) { .ss_flags = 0, |