diff options
author | Richard Weinberger <richard@nod.at> | 2015-08-09 22:49:07 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-10-19 23:53:37 +0300 |
commit | 6b1873371cea13036171d03a7c1e3e59158b4505 (patch) | |
tree | 01d0d2b9d72eea0300a081531ab6b9f302afe670 /arch/um/os-Linux/skas | |
parent | 37e81a016cc847c03ea71570fea29f12ca390bee (diff) | |
download | linux-6b1873371cea13036171d03a7c1e3e59158b4505.tar.xz |
um: Fix waitpid() usage in helper code
If UML is executing a helper program it is using
waitpid() with the __WCLONE flag to wait for the program
as the helper is executed from a clone()'ed thread.
While using __WCLONE is perfectly fine for clone()'ed
childs it won't detect terminated childs if the helper
has issued an execve().
We have to use __WALL to wait for both clone()'ed and
regular childs to detect the termination before and
after an execve().
Reported-and-tested-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux/skas')
0 files changed, 0 insertions, 0 deletions