Software engineer, data guy, Open Source enthusiast, New Hampshire resident, husband, father. Fan of guitars, hiking, photography, homebrewing, sarcasm.
Ruby: check for zombie children processes, kill them, and spawn a new parent process
I’ve recently been working on phantomjs code that can time out and leave behind zombie children processes. Here’s a method I created to check for child threads, kill the parent to remove child processes, and spawn a new instance of the parent process.