Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Add UV_PROCESS_WINDOWS_HIDE to avoid consoles on Windows #627

Closed
wants to merge 1 commit into from

Conversation

shanewholloway
Copy link
Contributor

UV_PROCESS_WINDOWS_HIDE enables supression of process windows when launching subprocesses on Windows platforms from a executable linked to the WINDOWS subsystem (as opposed to the CONSOLE subsystem).

…dows when launching subprocesses on Windows platforms. (port to v0.9 line)
@piscisaureus
Copy link

I'm fine with this. Can you sign the CLA? http://nodejs.org/cla.html

@shanewholloway
Copy link
Contributor Author

Fantastic! CLA signed & submitted.

Do I need to port this to the 0.9 branch?

@piscisaureus
Copy link

Landed (with some style modifications and fixing an assertion on unix) in 5d92ccc.

@shanewholloway PS. you may want to configure your git username, you show up as "Shane Holloway ext:(%22) <shane.holloway@ieee.org> here.

@shanewholloway
Copy link
Contributor Author

@piscisaureus thanks for letting me know — it is fixed for the future.

@txdv
Copy link
Contributor

txdv commented Nov 28, 2012

Em, one question.
Why didn't you make HIDE the default setting and add a flag which would SHOW it?
Wouldn't it be more consistent behaviour since you can on unix create it in hidden mode?

@shanewholloway
Copy link
Contributor Author

When I was writing it, I was more concerned about not changing any existing behavior — SW_SHOWDEFAULT is the default behavior for Win32's CreateProcess. Making HIDE the default makes great sense based on your argument.

cjihrig added a commit to cjihrig/libuv that referenced this pull request Sep 26, 2017
The existing UV_PROCESS_WINDOWS_HIDE flag only applies to
executables linked to the WINDOWS subsystem. This allows
CONSOLE subsystem applications to pop up a console
window. This commit sets the CREATE_NO_WINDOW process
flag when UV_PROCESS_WINDOWS_HIDE to prevent this behavior.

Refs: nodejs/node#15380
Refs: joyent/libuv#627
Refs: libuv#965
PR-URL: libuv#1558
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants