summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Ivanov <antivano@cisco.com>2014-03-07 18:37:46 +0000
committerRichard Weinberger <richard@nod.at>2014-04-20 23:13:30 +0200
commit9fcb663be42e4727c1beabc7c80e2d839199e6b1 (patch)
treeb4c2b62fd84b4608d2ee567411b9423ccc906e9b
parent0d71832e3004a0833938cc28a096823cd55b8e79 (diff)
downloadlinux-9fcb663be42e4727c1beabc7c80e2d839199e6b1.tar.bz2
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 <antivano@cisco.com> Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r--arch/um/os-Linux/main.c1
1 files changed, 1 insertions, 0 deletions
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);
/*