UML - Fix a crash under screen
PATCH 4/4 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 <[email protected]>
arch/um/kernel/skas/process.c +5 -1
@@ -61,7 +61,11 @@CATCH_EINTR (n =waitpid (pid, &status,WUNTRACED )); }while ((n >=0 ) &&WIFSTOPPED (status) && - (WSTOPSIG (status) ==SIGVTALRM )); + ((WSTOPSIG (status) ==SIGVTALRM ) || +/* running UML inside a detached screen can cause +* SIGWINCHes +*/ + (WSTOPSIG (status) ==SIGWINCH )));if ((n <0 ) || !WIFSTOPPED (status) || (WSTOPSIG (status) !=SIGUSR1 &&WSTOPSIG (status) !=SIGTRAP )){
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel