X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fum%2Fos-Linux%2Ftt.c;h=cb2648b79d0fd15090205da1f7595c7a2e639edf;hb=ea2ba7dc3dd3f85034e6da6abacc813d723a2ad5;hp=37828e5b35269903eff04e79f6885cee56c4e6b8;hpb=0805d89c151b4800eade4c2f50d39c5253d7d054;p=linux-2.6 diff --git a/arch/um/os-Linux/tt.c b/arch/um/os-Linux/tt.c index 37828e5b35..cb2648b79d 100644 --- a/arch/um/os-Linux/tt.c +++ b/arch/um/os-Linux/tt.c @@ -49,6 +49,20 @@ int protect_memory(unsigned long addr, unsigned long len, int r, int w, int x, return(0); } +void kill_child_dead(int pid) +{ + kill(pid, SIGKILL); + kill(pid, SIGCONT); + do { + int n; + CATCH_EINTR(n = waitpid(pid, NULL, 0)); + if (n > 0) + kill(pid, SIGCONT); + else + break; + } while(1); +} + /* *------------------------- * only for tt mode (will be deleted in future...)