From: Anton Ivanov Date: Fri, 7 Mar 2014 18:37:46 +0000 (+0000) Subject: um: Missing pipe handling X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9fcb663be42e4727c1beabc7c80e2d839199e6b1;p=linux-beck.git um: Missing pipe handling UML does not handle sigpipe. As a result when running it under expect or redirecting the IO from the console to an external program it will crash if the program stops or exits. Signed-off-by: Anton Ivanov Signed-off-by: Richard Weinberger --- diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index e1704ff600ff..df9191acd926 100644 --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c @@ -151,6 +151,7 @@ int __init main(int argc, char **argv, char **envp) #endif do_uml_initcalls(); + change_sig(SIGPIPE, 0); ret = linux_main(argc, argv); /*