I think running `strace -f` to see what’s reading what, what’s writing what, and in what order would be helpful here.
Edit: sorry, autowronged.
No reason to use `O_NONBLOCK` here. I simply forgot to remove it during a refactor when I wrote the PoC.