All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 1/3] BUG: Missing pipe handling
@ 2014-03-07 18:37 anton.ivanov
  2014-03-07 18:37 ` [uml-devel] [PATCH 2/3] BUG: Memory corruption on startup anton.ivanov
  2014-03-07 18:37 ` [uml-devel] [PATCH 3/3] BUG: Inapprorpiate choice of IPC anton.ivanov
  0 siblings, 2 replies; 7+ messages in thread
From: anton.ivanov @ 2014-03-07 18:37 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: richard

From: Anton Ivanov <antivano@cisco.com>

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>
---
 arch/um/os-Linux/main.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index 7a86dd5..048166d 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
@@ -149,6 +149,7 @@ int __init main(int argc, char **argv, char **envp)
 #endif
 
 	do_uml_initcalls();
+	change_sig(SIGPIPE, 0);
 	ret = linux_main(argc, argv);
 
 	/*
-- 
1.7.10.4


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-20 21:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 18:37 [uml-devel] [PATCH 1/3] BUG: Missing pipe handling anton.ivanov
2014-03-07 18:37 ` [uml-devel] [PATCH 2/3] BUG: Memory corruption on startup anton.ivanov
2014-03-07 18:37 ` [uml-devel] [PATCH 3/3] BUG: Inapprorpiate choice of IPC anton.ivanov
2014-03-08 23:33   ` Richard Weinberger
2014-03-09  7:16     ` Anton Ivanov
2014-04-20 21:28   ` Richard Weinberger
2014-04-20 21:57     ` Anton Ivanov (antivano)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.