Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set
windowsHide: true
when spawning a process
Summary: This appears to be necessary to prevent console windows from opening on Windows when spawning a command when using the Node JS module for Watchman. As per https://nodejs.org/api/child_process.html#child_processspawncommand-args-options: > `windowsHide` <boolean> Hide the subprocess console window that would normally be created on Windows systems. **Default:** `false`. Also, `execa` is a well-known module that attempts to "clean up" the default `child_process` API, and it sets `windowsHide: true` by default: https://github.com/sindresorhus/execa/blob/7a8f5cd3e900416a158d0e1b47dceaf6983862ac/index.js#L46 Incidentally, it appears that `windowsHide: true` prevents `SIGINT` from working on the process: nodejs/node#29837 Though I do not believe that should cause a problem here? Reviewed By: fanzeyi Differential Revision: D39699120 fbshipit-source-id: 82704d997b3c32774f99d19c801535044c121608
- Loading branch information