Skip to content

Commit

Permalink
um: Missing pipe handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Ivanov authored and Richard Weinberger committed Apr 20, 2014
1 parent 0d71832 commit 9fcb663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/um/os-Linux/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 9fcb663

Please sign in to comment.