提交 9fcb663b 编写于 作者: A Anton Ivanov 提交者: Richard Weinberger

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: NAnton Ivanov <antivano@cisco.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 0d71832e
...@@ -151,6 +151,7 @@ int __init main(int argc, char **argv, char **envp) ...@@ -151,6 +151,7 @@ int __init main(int argc, char **argv, char **envp)
#endif #endif
do_uml_initcalls(); do_uml_initcalls();
change_sig(SIGPIPE, 0);
ret = linux_main(argc, argv); ret = linux_main(argc, argv);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册