x86, um: convert to saner kernel_execve() semantics
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -244,16 +244,3 @@ void init_new_thread_signals(void)
|
||||
signal(SIGWINCH, SIG_IGN);
|
||||
signal(SIGTERM, SIG_DFL);
|
||||
}
|
||||
|
||||
int run_kernel_thread(int (*fn)(void *), void *arg, jmp_buf **jmp_ptr)
|
||||
{
|
||||
jmp_buf buf;
|
||||
int n;
|
||||
|
||||
*jmp_ptr = &buf;
|
||||
n = UML_SETJMP(&buf);
|
||||
if (n != 0)
|
||||
return n;
|
||||
(*fn)(arg);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user