about summary refs log tree commit diff
path: root/src/thread/pthread_self.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-25 00:35:09 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-25 00:35:09 -0400
commit73db33b94927d160f5dac5861a37ffbfd81d3ff6 (patch)
tree6fa8e332d5a14fd377965932f583f8c9a9a7932b /src/thread/pthread_self.c
parent54c567649eaadb99175b3883659872f791e482b1 (diff)
downloadmusl-73db33b94927d160f5dac5861a37ffbfd81d3ff6.tar.gz
musl-73db33b94927d160f5dac5861a37ffbfd81d3ff6.tar.xz
musl-73db33b94927d160f5dac5861a37ffbfd81d3ff6.zip
remove leftover cp_sp cruft from cancellation code, fix small bug
the bug was that cancellation requests which arrived while a
cancellation point was interrupted by a signal handler would not be
acted upon when the signal handler returns. this was because cp_sp was
never set; it's no longer needed or used.

instead, just always re-raise the signal when cancellation was not
acted upon. this wastes a tiny amount of time in the rare case where
it even matters, but it ensures correctness and simplifies the code.
Diffstat (limited to 'src/thread/pthread_self.c')
0 files changed, 0 insertions, 0 deletions