[PATCH] uml: fix a crash under screen

Running UML inside a detached screen delivers SIGWINCH when UML is not
expecting it. This patch ignores them.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Jeff Dike and committed by Linus Torvalds 2eaa297c 718d8989

+5 -1
+5 -1
arch/um/kernel/skas/process.c
··· 61 61 62 62 CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); 63 63 } while((n >= 0) && WIFSTOPPED(status) && 64 - (WSTOPSIG(status) == SIGVTALRM)); 64 + ((WSTOPSIG(status) == SIGVTALRM) || 65 + /* running UML inside a detached screen can cause 66 + * SIGWINCHes 67 + */ 68 + (WSTOPSIG(status) == SIGWINCH))); 65 69 66 70 if((n < 0) || !WIFSTOPPED(status) || 67 71 (WSTOPSIG(status) != SIGUSR1 && WSTOPSIG(status) != SIGTRAP)){