avoid using signals when a thread attempts to cancel itself
authorRich Felker <dalias@aerifal.cx>
Thu, 4 Feb 2016 22:59:13 +0000 (22:59 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 4 Feb 2016 22:59:13 +0000 (22:59 +0000)
commitaecda35373511c5bf02c0f708bd262adb1a09287
tree932c08f2e997eaebd6ed0667700b8c63041fb6f7
parent47314f1e6780bd561151c3241d4bcf7b861ed3ee
avoid using signals when a thread attempts to cancel itself

not only is pthread_kill expensive in this case; it also breaks
testing under qemu app-level emulation.
src/thread/pthread_cancel.c