Elektrine lite

← Feed

@icing@chaos.social

Post #4276594

2026-07-31 10:56 UTC

@david_chisnall@infosec.exchange tl;dr It is totally broken. https://eissing.org/icing/posts/rip_pthread_cancel/

Replies (2)

  • @icing@chaos.social @david_chisnall@infosec.exchange I think I adopted a rule to not try doing it (in C or any other proglang) because of all the prickly failure modes. in Golang we have the luxury of either using channels to convey that desire to the target thread, or, cancelling a "context" in Golangspeak. in early Java days I remember they also first designed it with an API for externally cancelling a java.lang.Thread and then abandoned it there too as too dangerous. I would not be shocked to learn if Java 1.0's impl of thread cancelling was itself a wrapper around pthread_cancel too.

    Open ##4276593

  • @acsawdey@fosstodon.org 2026-07-31 11:48

    @icing@chaos.social @david_chisnall@infosec.exchange Amusing that DNS is the agent provocateur leading to this example of bad behavior…

    Open ##4277437