Closed pjw91 closed 6 years ago
thanks!
Actually, this patch forces the user to properly shutdown the Xfvb; otherwise, it would be an orphan process.
Shall this become an optional feature?
I just reverted this in master for now. Will investigate when I have time.
Detach subprocess from interpreter's process group, avoids receiving SIGINT from it.
When hitting Ctrl+C, the subprocess Xvfb (and webdriver/selenium), receives SIGINT and shutdown, probably before the custom clean-up code. (race condition)
If I use a class Page to wrap around selenium, and have a clean-up code in exit to close the opened window: