diff options
Diffstat (limited to 'arch/um/os-Linux/process.c')
-rw-r--r-- | arch/um/os-Linux/process.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c index 0c45dc8efb05..307f173e7f82 100644 --- a/arch/um/os-Linux/process.c +++ b/arch/um/os-Linux/process.c | |||
@@ -13,12 +13,9 @@ | |||
13 | #include <sys/wait.h> | 13 | #include <sys/wait.h> |
14 | #include <asm/unistd.h> | 14 | #include <asm/unistd.h> |
15 | #include "init.h" | 15 | #include "init.h" |
16 | #include "kern_constants.h" | ||
17 | #include "longjmp.h" | 16 | #include "longjmp.h" |
18 | #include "os.h" | 17 | #include "os.h" |
19 | #include "process.h" | ||
20 | #include "skas_ptrace.h" | 18 | #include "skas_ptrace.h" |
21 | #include "user.h" | ||
22 | 19 | ||
23 | #define ARBITRARY_ADDR -1 | 20 | #define ARBITRARY_ADDR -1 |
24 | #define FAILURE_PID -1 | 21 | #define FAILURE_PID -1 |
@@ -237,21 +234,13 @@ out: | |||
237 | 234 | ||
238 | void init_new_thread_signals(void) | 235 | void init_new_thread_signals(void) |
239 | { | 236 | { |
240 | set_handler(SIGSEGV, (__sighandler_t) sig_handler, SA_ONSTACK, | 237 | set_handler(SIGSEGV); |
241 | SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | 238 | set_handler(SIGTRAP); |
242 | set_handler(SIGTRAP, (__sighandler_t) sig_handler, SA_ONSTACK, | 239 | set_handler(SIGFPE); |
243 | SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | 240 | set_handler(SIGILL); |
244 | set_handler(SIGFPE, (__sighandler_t) sig_handler, SA_ONSTACK, | 241 | set_handler(SIGBUS); |
245 | SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | ||
246 | set_handler(SIGILL, (__sighandler_t) sig_handler, SA_ONSTACK, | ||
247 | SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | ||
248 | set_handler(SIGBUS, (__sighandler_t) sig_handler, SA_ONSTACK, | ||
249 | SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | ||
250 | signal(SIGHUP, SIG_IGN); | 242 | signal(SIGHUP, SIG_IGN); |
251 | 243 | set_handler(SIGIO); | |
252 | set_handler(SIGIO, (__sighandler_t) sig_handler, | ||
253 | SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGALRM, | ||
254 | SIGVTALRM, -1); | ||
255 | signal(SIGWINCH, SIG_IGN); | 244 | signal(SIGWINCH, SIG_IGN); |
256 | signal(SIGTERM, SIG_DFL); | 245 | signal(SIGTERM, SIG_DFL); |
257 | } | 246 | } |