👩💻 Join our community of thousands of amazing developers!
Children have issues, especially when you try to kill them incorrectly and they come back as zombies - just in case, I’m talking about process children in linux (don’t arrest me please). Here’s a snippet of code from a personal project: try: os.kill(child_pid, signal.SIGTERM) return True except Exception as e: print(e) Can you notice what’s wrong with the above snippet? (Apart from the horrid error handling, and the fact that I’ve ignored that the children must have async-signal-safe...