Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix(windows): remove DETACHED_PROCESS flag when starting the server…
Browse files Browse the repository at this point in the history
… process

See discussion in #514.
  • Loading branch information
tangmi authored and drahnr committed Apr 6, 2021
1 parent fbd4137 commit f900b3a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fn run_server_process() -> Result<ServerStartup> {
use winapi::um::handleapi::CloseHandle;
use winapi::um::processthreadsapi::{CreateProcessW, PROCESS_INFORMATION, STARTUPINFOW};
use winapi::um::winbase::{
CREATE_NEW_PROCESS_GROUP, CREATE_NO_WINDOW, CREATE_UNICODE_ENVIRONMENT, DETACHED_PROCESS,
CREATE_NEW_PROCESS_GROUP, CREATE_NO_WINDOW, CREATE_UNICODE_ENVIRONMENT,
};

trace!("run_server_process");
Expand Down Expand Up @@ -227,10 +227,7 @@ fn run_server_process() -> Result<ServerStartup> {
ptr::null_mut(),
ptr::null_mut(),
FALSE,
CREATE_UNICODE_ENVIRONMENT
| DETACHED_PROCESS
| CREATE_NEW_PROCESS_GROUP
| CREATE_NO_WINDOW,
CREATE_UNICODE_ENVIRONMENT | CREATE_NEW_PROCESS_GROUP | CREATE_NO_WINDOW,
envp.as_mut_ptr() as LPVOID,
ptr::null(),
&mut si,
Expand Down

0 comments on commit f900b3a

Please sign in to comment.