Commit 9fcb663be42e4727c1beabc7c80e2d839199e6b1

Authored by Anton Ivanov
Committed by Richard Weinberger
1 parent 0d71832e30

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

arch/um/os-Linux/main.c
... ... @@ -151,6 +151,7 @@
151 151 #endif
152 152  
153 153 do_uml_initcalls();
  154 + change_sig(SIGPIPE, 0);
154 155 ret = linux_main(argc, argv);
155 156  
156 157 /*