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

Loading…
Cancel
Save