diff options
Diffstat (limited to 'arch/um/os-Linux/util.c')
-rw-r--r-- | arch/um/os-Linux/util.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index ef095436a78c..a6f31d476993 100644 --- a/arch/um/os-Linux/util.c +++ b/arch/um/os-Linux/util.c | |||
@@ -88,21 +88,6 @@ void setup_hostinfo(char *buf, int len) | |||
88 | host.release, host.version, host.machine); | 88 | host.release, host.version, host.machine); |
89 | } | 89 | } |
90 | 90 | ||
91 | int setjmp_wrapper(void (*proc)(void *, void *), ...) | ||
92 | { | ||
93 | va_list args; | ||
94 | jmp_buf buf; | ||
95 | int n; | ||
96 | |||
97 | n = UML_SETJMP(&buf); | ||
98 | if(n == 0){ | ||
99 | va_start(args, proc); | ||
100 | (*proc)(&buf, &args); | ||
101 | } | ||
102 | va_end(args); | ||
103 | return n; | ||
104 | } | ||
105 | |||
106 | void os_dump_core(void) | 91 | void os_dump_core(void) |
107 | { | 92 | { |
108 | int pid; | 93 | int pid; |
@@ -141,7 +126,7 @@ void os_dump_core(void) | |||
141 | * nothing reasonable to do if that fails. | 126 | * nothing reasonable to do if that fails. |
142 | */ | 127 | */ |
143 | 128 | ||
144 | while ((pid = waitpid(-1, NULL, WNOHANG)) > 0) | 129 | while ((pid = waitpid(-1, NULL, WNOHANG | __WALL)) > 0) |
145 | os_kill_ptraced_process(pid, 0); | 130 | os_kill_ptraced_process(pid, 0); |
146 | 131 | ||
147 | abort(); | 132 | abort(); |