aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/util.c')
-rw-r--r--arch/um/os-Linux/util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c
index 492ef5e6e166..faee55ef6d2f 100644
--- a/arch/um/os-Linux/util.c
+++ b/arch/um/os-Linux/util.c
@@ -94,6 +94,16 @@ static inline void __attribute__ ((noreturn)) uml_abort(void)
94 exit(127); 94 exit(127);
95} 95}
96 96
97/*
98 * UML helper threads must not handle SIGWINCH/INT/TERM
99 */
100void os_fix_helper_signals(void)
101{
102 signal(SIGWINCH, SIG_IGN);
103 signal(SIGINT, SIG_DFL);
104 signal(SIGTERM, SIG_DFL);
105}
106
97void os_dump_core(void) 107void os_dump_core(void)
98{ 108{
99 int pid; 109 int pid;