diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-13 16:43:22 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-13 16:48:08 +0200 |
commit | a031a1bf93b828585e7147f06145fc5030814547 (patch) | |
tree | de6fc2dc1083d952e8ac9384f65cc6a88937b2e0 /overlay/power.h | |
parent | 9298dfabd9658315df34616b1e9a10b3579a92bd (diff) |
lib/drmtest: ducttape over fork race
Whatever the reason (and I've thought there isn't one) if we fork and
kill right away the child seems to not reliably die. We can work
around this little race by forcing the default SIGQUIT handler. This
should break anything since we reset our atexit handling anyway, so if
the helper needs any atexit handling the special signal helpers will
be reinstated.
Note that inserting sufficient amounts of printf between the fork and
kill makes this unnecessary.
While add it also add the retry loop for the waitpid call, in case
there's another guy constantly interrupting us.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'overlay/power.h')
0 files changed, 0 insertions, 0 deletions