Skip to content

Conversation

@jdholtz
Copy link
Contributor

@jdholtz jdholtz commented Jul 13, 2023

Fixes #649.

This fix is originally from @lightolly in this comment.

This prevents zombie (defunct) processes on *nix systems. The waitpid() function throws a ChildProcessError on Windows, so that is handled accordingly.

I tested it with quit and __del__ and it removed traces of all Chrome processes for both.

This prevents zombie (defunct) processes on *nix systems. The waitpid()
function throws a ChildProcessError on Windows, so that is handled
accordingly.
@Oddly
Copy link

Oddly commented Jul 18, 2023

Confirmed working. Tested this on Linux, before undetected_chromedriver zombie processes lingered, now they don't.
Thank you @jdholtz !

@jeffreybatista
Copy link

Tried it on mac and it didn't work chrome 115

@jdholtz
Copy link
Contributor Author

jdholtz commented Aug 16, 2023

Hey @jeffreybatista, do the processes still exist then, even after the browser quits? Does os.waitpid cause a ChildProcessError to be thrown on Mac (I have only tested this on Linux and Windows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't fully quite/kill undetected-chromedriver process

4 participants