Post AoCIBylIBa6w5NERiC by Mek101@fosstodon.org
 (DIR) More posts by Mek101@fosstodon.org
 (DIR) Post #AoCIBylIBa6w5NERiC by Mek101@fosstodon.org
       2024-11-19T09:59:32Z
       
       0 likes, 0 repeats
       
       pthread_cancel considered harmfulhttps://skaark.wordpress.com/2010/08/26/pthread_cancel-considered-harmful/ #c #clanguage #programming #linux #posix
       
 (DIR) Post #AoCIBzhmg6tn0mb9sm by m0xee@social.librem.one
       2024-11-19T10:08:12Z
       
       0 likes, 0 repeats
       
       @Mek101 In C that would probably be okay though: no exceptions (on programming language level) and no destructors 🤔
       
 (DIR) Post #AoCIL6ihxyLpNGNNGS by Mek101@fosstodon.org
       2024-11-19T10:09:50Z
       
       0 likes, 0 repeats
       
       @m0xee You would still leak resources though, as calls to close and all can be spread through the code
       
 (DIR) Post #AoCIf2Yr8escGdGxVY by m0xee@social.librem.one
       2024-11-19T10:13:27Z
       
       0 likes, 0 repeats
       
       @Mek101 Yeah, true in many cases — could probably be mitigated with proper design. I mean at least something like exception within exception handler leading to runtime abort won't happen, which, again, depending on design, might be okay or a total disaster 😂