[PATCH] uml: block SIGWINCH in ptrace tester child
The process that UML uses to probe the host's ptrace capabilities can (rarely) receive a SIGWINCH, confusing the parent. This fixes that by blocking SIGWINCH. 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:
parent
14d9ead05e
commit
43b00fdbb1
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ static int ptrace_child(void *arg)
|
||||||
int pid = os_getpid(), ppid = getppid();
|
int pid = os_getpid(), ppid = getppid();
|
||||||
int sc_result;
|
int sc_result;
|
||||||
|
|
||||||
|
change_sig(SIGWINCH, 0);
|
||||||
if(ptrace(PTRACE_TRACEME, 0, 0, 0) < 0){
|
if(ptrace(PTRACE_TRACEME, 0, 0, 0) < 0){
|
||||||
perror("ptrace");
|
perror("ptrace");
|
||||||
os_kill_process(pid, 0);
|
os_kill_process(pid, 0);
|
||||||
|
|
Loading…
Reference in a new issue