diff options
Diffstat (limited to 'arch/um/os-Linux/tt.c')
-rw-r--r-- | arch/um/os-Linux/tt.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/um/os-Linux/tt.c b/arch/um/os-Linux/tt.c index a6db8877931a..cb2648b79d0f 100644 --- a/arch/um/os-Linux/tt.c +++ b/arch/um/os-Linux/tt.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include "kern_util.h" | 23 | #include "kern_util.h" |
24 | #include "user.h" | 24 | #include "user.h" |
25 | #include "signal_kern.h" | 25 | #include "signal_kern.h" |
26 | #include "signal_user.h" | ||
27 | #include "sysdep/ptrace.h" | 26 | #include "sysdep/ptrace.h" |
28 | #include "sysdep/sigcontext.h" | 27 | #include "sysdep/sigcontext.h" |
29 | #include "irq_user.h" | 28 | #include "irq_user.h" |
@@ -50,6 +49,20 @@ int protect_memory(unsigned long addr, unsigned long len, int r, int w, int x, | |||
50 | return(0); | 49 | return(0); |
51 | } | 50 | } |
52 | 51 | ||
52 | void kill_child_dead(int pid) | ||
53 | { | ||
54 | kill(pid, SIGKILL); | ||
55 | kill(pid, SIGCONT); | ||
56 | do { | ||
57 | int n; | ||
58 | CATCH_EINTR(n = waitpid(pid, NULL, 0)); | ||
59 | if (n > 0) | ||
60 | kill(pid, SIGCONT); | ||
61 | else | ||
62 | break; | ||
63 | } while(1); | ||
64 | } | ||
65 | |||
53 | /* | 66 | /* |
54 | *------------------------- | 67 | *------------------------- |
55 | * only for tt mode (will be deleted in future...) | 68 | * only for tt mode (will be deleted in future...) |