This is why we can't have safe cancellation points
This is why we can't have safe cancellation points
Posted Apr 18, 2016 0:21 UTC (Mon) by luto (guest, #39314)In reply to: This is why we can't have safe cancellation points by nix
Parent article: This is why we can't have safe cancellation points
But you could do it by flipping the default if you're willing to accept a branch: just test the cancellable flag and jump out of line if needed. This is no worse than the existing musl thing in which each cancellable syscall needs to test the cancallable flag anyway to see if it needs to cancel even without a signal being sent.
Posted Apr 18, 2016 10:28 UTC (Mon)
by nix (subscriber, #2304)
[Link]
This is why we can't have safe cancellation points