projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
um: Fix waitpid() usage in helper code
[deliverable/linux.git]
/
arch
/
um
/
os-Linux
/
helper.c
diff --git
a/arch/um/os-Linux/helper.c
b/arch/um/os-Linux/helper.c
index e3ee4a51ef63a3ec7e7314aa7f00d59ec93ce37e..3f02d42328127bc6c41b786fd9b10145256cd57f 100644
(file)
--- a/
arch/um/os-Linux/helper.c
+++ b/
arch/um/os-Linux/helper.c
@@
-96,7
+96,7
@@
int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv)
"ret = %d\n", -n);
ret = n;
}
"ret = %d\n", -n);
ret = n;
}
- CATCH_EINTR(waitpid(pid, NULL, __W
CLONE
));
+ CATCH_EINTR(waitpid(pid, NULL, __W
ALL
));
}
out_free2:
}
out_free2:
@@
-129,7
+129,7
@@
int run_helper_thread(int (*proc)(void *), void *arg, unsigned int flags,
return err;
}
if (stack_out == NULL) {
return err;
}
if (stack_out == NULL) {
- CATCH_EINTR(pid = waitpid(pid, &status, __W
CLONE
));
+ CATCH_EINTR(pid = waitpid(pid, &status, __W
ALL
));
if (pid < 0) {
err = -errno;
printk(UM_KERN_ERR "run_helper_thread - wait failed, "
if (pid < 0) {
err = -errno;
printk(UM_KERN_ERR "run_helper_thread - wait failed, "
@@
-148,7
+148,7
@@
int run_helper_thread(int (*proc)(void *), void *arg, unsigned int flags,
int helper_wait(int pid)
{
int ret, status;
int helper_wait(int pid)
{
int ret, status;
- int wflags = __W
CLONE
;
+ int wflags = __W
ALL
;
CATCH_EINTR(ret = waitpid(pid, &status, wflags));
if (ret < 0) {
CATCH_EINTR(ret = waitpid(pid, &status, wflags));
if (ret < 0) {
This page took
0.025075 seconds
and
5
git commands to generate.