Browse Source

fix terminating server process

pull/1089/head
Jason Dove 4 years ago
parent
commit
648f25e9cc
  1. 3
      ErsatzTV-Windows/src/main.rs

3
ErsatzTV-Windows/src/main.rs

@ -94,8 +94,11 @@ fn main() {
None => {} None => {}
Some(mut child) => { Some(mut child) => {
unsafe { unsafe {
if Console::AttachConsole(child.id()) == true
{
Console::GenerateConsoleCtrlEvent(Console::CTRL_C_EVENT, 0); Console::GenerateConsoleCtrlEvent(Console::CTRL_C_EVENT, 0);
} }
}
child.wait().unwrap(); child.wait().unwrap();
} }
} }

Loading…
Cancel
Save