diff options
Diffstat (limited to 'arch/um/os-Linux/process.c')
-rw-r--r-- | arch/um/os-Linux/process.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c index e9c143297512..d5fef4ce0112 100644 --- a/arch/um/os-Linux/process.c +++ b/arch/um/os-Linux/process.c | |||
@@ -133,13 +133,6 @@ void os_kill_ptraced_process(int pid, int reap_child) | |||
133 | CATCH_EINTR(waitpid(pid, NULL, 0)); | 133 | CATCH_EINTR(waitpid(pid, NULL, 0)); |
134 | } | 134 | } |
135 | 135 | ||
136 | #ifdef UML_CONFIG_MODE_TT | ||
137 | void os_usr1_process(int pid) | ||
138 | { | ||
139 | kill(pid, SIGUSR1); | ||
140 | } | ||
141 | #endif | ||
142 | |||
143 | /* Don't use the glibc version, which caches the result in TLS. It misses some | 136 | /* Don't use the glibc version, which caches the result in TLS. It misses some |
144 | * syscalls, and also breaks with clone(), which does not unshare the TLS. | 137 | * syscalls, and also breaks with clone(), which does not unshare the TLS. |
145 | */ | 138 | */ |
@@ -239,30 +232,6 @@ out: | |||
239 | return ok; | 232 | return ok; |
240 | } | 233 | } |
241 | 234 | ||
242 | #ifdef UML_CONFIG_MODE_TT | ||
243 | void init_new_thread_stack(void *sig_stack, void (*usr1_handler)(int)) | ||
244 | { | ||
245 | int flags = 0, pages; | ||
246 | |||
247 | if(sig_stack != NULL){ | ||
248 | pages = (1 << UML_CONFIG_KERNEL_STACK_ORDER); | ||
249 | set_sigstack(sig_stack, pages * UM_KERN_PAGE_SIZE); | ||
250 | flags = SA_ONSTACK; | ||
251 | } | ||
252 | if(usr1_handler){ | ||
253 | struct sigaction sa; | ||
254 | |||
255 | sa.sa_handler = usr1_handler; | ||
256 | sigemptyset(&sa.sa_mask); | ||
257 | sa.sa_flags = flags; | ||
258 | sa.sa_restorer = NULL; | ||
259 | if(sigaction(SIGUSR1, &sa, NULL) < 0) | ||
260 | panic("init_new_thread_stack - sigaction failed - " | ||
261 | "errno = %d\n", errno); | ||
262 | } | ||
263 | } | ||
264 | #endif | ||
265 | |||
266 | void init_new_thread_signals(void) | 235 | void init_new_thread_signals(void) |
267 | { | 236 | { |
268 | set_handler(SIGSEGV, (__sighandler_t) sig_handler, SA_ONSTACK, | 237 | set_handler(SIGSEGV, (__sighandler_t) sig_handler, SA_ONSTACK, |