I have a program that starts ChromeDrivers, which launches the Chrome + browser, then tries to close both after completing some tasks (using Selenium). But often when my program cannot kill the ChromeDriver / Chrome browser. When I try to kill ChromeDriver, Chrome + browser, all other child processes are not destroyed.
I tried looking at / proc / x / environ to determine if I could extract the DISPLAY of this process, but found that such environment variable was not selected for the child processes of browser +.
Is there any other way to detect all processes on a particular Xvfb display and kill them all?
google-chrome process selenium selenium-chromedriver xvfb
Ben
source share