aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/main.c
diff options
context:
space:
mode:
authorAnton Ivanov <antivano@cisco.com>2014-03-07 13:37:46 -0500
committerRichard Weinberger <richard@nod.at>2014-04-20 17:13:30 -0400
commit9fcb663be42e4727c1beabc7c80e2d839199e6b1 (patch)
treeb4c2b62fd84b4608d2ee567411b9423ccc906e9b /arch/um/os-Linux/main.c
parent0d71832e3004a0833938cc28a096823cd55b8e79 (diff)
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>
Diffstat (limited to 'arch/um/os-Linux/main.c')
-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)
151#endif 151#endif
152 152
153 do_uml_initcalls(); 153 do_uml_initcalls();
154 change_sig(SIGPIPE, 0);
154 ret = linux_main(argc, argv); 155 ret = linux_main(argc, argv);
155 156
156 /* 157 /*