zetalyrae roasts production C: procps /bin/kill snippet sparks bug hunt
zetalyrae · x · 2026-11-04
zetalyrae shares a snippet from procps 4.0.4 (the provider of /bin/kill in Ubuntu 24.04 LTS), exclaiming "every time I read a snippet of production C code I lose my mind." The screenshot shows getoptlong handling with a special case for negative-PID signals — hand-building the pid via ('0' - optopt) and suppressing opterr to swallow errors on -123 — framed as a "can you spot the bug?" challenge.
Related event: Viral procps code snippet sparks debate over production C quality(3 posts)→
More from Fun
- Casado cites Nash equilibrium complexity to argue defensibility is pointless — DimitrisPapail · 2026-11-04
- Weight-Space Programming backlash: why do amplified hype influencers escape blame? — xeophon · 2026-11-04
- Frontier models race sailboats in a sim: Argon wins, Opus DNFs, Qwen runs aground — shekitup · 2026-11-04
- AI Short 'Reptilian Chronicles' Ep.4: Lizard Acting Class Plays a Talk Show Queen — fallotheprophets · 2026-11-04
- The 'does this hurt the wafer' meme resurfaces in AI circles — repligate · 2026-11-04
- Recreating 1992 magnetic-drop sunflower spirals: golden angle emerges from one rule — JosephJacks_ · 2026-11-04