commit | 343b13fb7ed47ff9a1bc5a6984ac62a2689c3eda | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Mon Dec 19 18:57:26 2011 -0500 |
committer | Mike Frysinger <vapier@gentoo.org> | Mon Dec 19 18:57:26 2011 -0500 |
tree | fd36f90cbb2195fa56cf3f8f2c99a53a10dd7e18 | |
parent | 91805147fb4cfe57b256d1f1cb7ffaf16920f1fd [diff] |
ptrace: check signal status in main thread Newer versions of gcc will assume "child_stopped" is not set async (via the signal handler) and so won't reload the value leading to an infinite loop. Rather than marking the variable as volatile, just move the signal checking into the main thread. This avoids cpu burning and should work the same. Signed-off-by: Mike Frysinger <vapier@gentoo.org>