Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zombie phantomjs processes (#338)
After running wallaby as part of a separate application, I confirmed we were still leaving around zombie phantom processes. It turns out if we kill the script's process group, it will kill all of the child processes as well. This appears to fix the zombie issue once and for all. One thing to note, I kill the process group by using the negative value of the wrapper script's pid, instead of using `ps axo pid, pgid` to look up the process group id. This is because I was occasionally running into issues where the process group lookup wasn't returning a result, causing more zombie processes. Hopefully this approach won't cause any issues. Fixes #224.
- Loading branch information