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(windows): remove DETACHED_PROCESS flag when starting the server process #525

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

tangmi
Copy link
Contributor

@tangmi tangmi commented Oct 2, 2019

The DETACHED_PROCESS flag causes the CREATE_NO_WINDOW to be ignored. See MS docs: https://docs.microsoft.com/en-us/windows/win32/procthread/process-creation-flags.

I believe DETACHED_PROCESS should avoid creating a window (unless one calls AllocConsole), but we're definitely seeing these calls create console windows. I've observed that sccache 0.2.11 works fine and does not create console windows in command prompt, but creates many console windows in powershell. The result is that this PR is a bit of a hack fix (unless we can justify not actually needing DETACHED_PROCESS...?).

Note: I'm planning on leaving the discussion at #514 (and off this PR, at least until some decision is made).

@glandium
Copy link
Collaborator

glandium commented Dec 9, 2020

Closing per #514 (comment)

@glandium glandium closed this Dec 9, 2020
@glandium
Copy link
Collaborator

Reopening per #514 (comment)

@glandium
Copy link
Collaborator

For good measure, I'll test this on Mozilla automation before merging.

@glandium glandium added this to the 0.2.14 milestone Dec 11, 2020
@glandium glandium marked this pull request as ready for review December 11, 2020 04:06
@glandium glandium merged commit 36f466f into mozilla:master Dec 11, 2020
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