HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
350 stars 53 forks source link

PhantomJS: ignore stdin #20

Open smurfix opened 6 years ago

smurfix commented 6 years ago

phantomjs, by default, reads from its stdin. That causes problems with the Python debugger / other interactive front-ends.

Please explicitly re-open /dev/null as PhantomJS' standard input.

dyeray commented 6 years ago

I am also seeing this issue. Thanks for pointing out the source of the problem BTW. Defining stdin=DEVNULL on function subprocess_based_service for PhantomJS seems to fix it. Is this something planned to be added?

dimaqq commented 5 years ago

We love pull requests!