diff options
author | Anton Ivanov <antivano@cisco.com> | 2014-03-07 18:37:46 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2014-04-20 23:13:30 +0200 |
commit | 9fcb663be42e4727c1beabc7c80e2d839199e6b1 (patch) | |
tree | b4c2b62fd84b4608d2ee567411b9423ccc906e9b | |
parent | 0d71832e3004a0833938cc28a096823cd55b8e79 (diff) | |
download | linux-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.c | 1 |
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); /* |