diff options
author | jdike <jdike> | 2003-04-24 16:48:15 +0000 |
---|---|---|
committer | jdike <jdike> | 2003-04-24 16:48:15 +0000 |
commit | c0987446501f168120ffba5239f0669fa692cd2d (patch) | |
tree | aba76f4448be027f68d8486a85f7646e24d4407b | |
parent | fbdcea28d49217caed60714d591f74e929cd7f24 (diff) | |
download | uml-history-c0987446501f168120ffba5239f0669fa692cd2d.tar.gz |
Got rid of clone_and_wait, which isn't used any more.
-rw-r--r-- | arch/um/include/user_util.h | 1 | ||||
-rw-r--r-- | arch/um/kernel/user_util.c | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/arch/um/include/user_util.h b/arch/um/include/user_util.h index 7d3f3c4..4ac708a 100644 --- a/arch/um/include/user_util.h +++ b/arch/um/include/user_util.h @@ -59,7 +59,6 @@ extern int wait_for_stop(int pid, int sig, int cont_type, void *relay); extern void *add_signal_handler(int sig, void (*handler)(int)); extern int start_fork_tramp(void *arg, unsigned long temp_stack, int clone_flags, int (*tramp)(void *)); -extern int clone_and_wait(int (*fn)(void *), void *arg, void *sp, int flags); extern int linux_main(int argc, char **argv); extern void set_cmdline(char *cmd); extern void input_cb(void (*proc)(void *), void *arg, int arg_len); diff --git a/arch/um/kernel/user_util.c b/arch/um/kernel/user_util.c index 4749558..0429b0e 100644 --- a/arch/um/kernel/user_util.c +++ b/arch/um/kernel/user_util.c @@ -118,17 +118,6 @@ int wait_for_stop(int pid, int sig, int cont_type, void *relay) } } -int clone_and_wait(int (*fn)(void *), void *arg, void *sp, int flags) -{ - int pid; - - pid = clone(fn, sp, flags, arg); - if(pid < 0) return(-1); - wait_for_stop(pid, SIGSTOP, PTRACE_CONT, NULL); - ptrace(PTRACE_CONT, pid, 0, 0); - return(pid); -} - int raw(int fd, int complain) { struct termios tt; |