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

Make workerPids() work on Windows using WMIC instead of ps #94

Closed
wants to merge 4 commits into from
Closed

Make workerPids() work on Windows using WMIC instead of ps #94

wants to merge 4 commits into from

Conversation

richardkmiller
Copy link
Contributor

exec('ps...') fails on Windows -- switch to equivalent Windows command

@danhunsaker
Copy link
Contributor

Is WMIC available by default, or does it need to be installed separately?

Though it would certainly be nice to not have to use exec() for anything in the first place...

@richardkmiller
Copy link
Contributor Author

WMIC is installed by default. Agreed that it'd be nice not to use exec().

It just occurred to me that my Windows worker code depends on an ugly hack: Because Windows does not provide process forking, Windows workers won't run without changing Worker.php:190 to "if (true)" to run as the child. It's orthogonal to this patch, but Windows workers won't run without it. I'll try to make that less hackish and submit a patch.

@richardkmiller
Copy link
Contributor Author

Closing this because it's essentially the same as #93. I took a few iterations to get there but the result is the same.

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.

2 participants