Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: kill all IE processes when terminating browser process #16

Merged
merged 1 commit into from
Apr 1, 2014

Conversation

sylvain-hamel
Copy link
Contributor

closes #15

@cthorne66
Copy link

I tested the updates, and still see one iexplorer.exe instance staying open in the background. When I end that last instance manually, my CI (Jenkins) finally confirms the results.

Without manually killing, it just hangs & waits.

This being said, there are no browsers visible during the issue, as they are closed from sight

@sylvain-hamel
Copy link
Contributor Author

Does the iexplore.exe that stays there have command line args that look like this:

SCODEF:2632 CREDAT:275457 /prefetch:2

You can find this out by adding the command line column in Task Manager.

@sylvain-hamel
Copy link
Contributor Author

In fact there are two fixes to fix this bug

  1. fix(web-server): implement a timeout on webServer.close() karma#973 is the fix that is supposed to end IE correctly.
  2. This fix here is to end extra iexplor.exe processes that stay open.

Can you please try both fixes together and let me know.

@cthorne66
Copy link

I'm seeing SCODEF:1300 CREDAT:78849 /prefetch:2. Forgot to mention I'm working with IE10 at the moment, but will have to apply the same to a IE11 instance. I will try both of those fixes & let you know. Thank you

@cthorne66
Copy link

The confusion was on my end. Your changes are working to close the iexplor.exe, and therefor Jenkins is able to go on with it's work.

+1

Thank you very much!

@sylvain-hamel
Copy link
Contributor Author

Awesome! Thanks for the update. I should be able to merge this PR this week.

//
// This function kills any iexplore.exe process who's command line args match 'SCODEF:pid'.
// On IE11 this will kill the extra process. On older versions, no process will be found.
function killExtraIEProcess(pid, cb) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try to define your functions before you use them :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dignifiedquire this project does not have code style check yet. I'm going to do this in #17. I'd merge this one as-is and fix the all the styles with #17 if you don't mind.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

sylvain-hamel added a commit that referenced this pull request Apr 1, 2014
fix: kill all IE processes when terminating browser process
@sylvain-hamel sylvain-hamel merged commit b849231 into karma-runner:master Apr 1, 2014
@sylvain-hamel sylvain-hamel deleted the fix-15 branch April 19, 2014 03:39
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.

Running tests on IE leaves an extra iexplore.exe processe
3 participants