[PATCH] uml: move libc-dependent code from trap_user.c
The serial UML OS-abstraction layer patch (um/kernel dir). This moves all systemcalls from trap_user.c file under os-Linux dir Signed-off-by: Gennady Sharapov <Gennady.V.Sharapov@intel.com> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
0805d89c15
commit
ea2ba7dc3d
@@ -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...)
|
||||
|
Reference in New Issue
Block a user