Change old/new_select() to more popular names.
Debugging leftovers: don't reopen memfd too often
Don't call ptrace() after a pid died, check for errors on ptrace(SYSCALL)
Use SYS_ defintions for syscalls, not __NR_