Commit 7ea1fa33 authored by Eriksson Monteiro's avatar Eriksson Monteiro

fix node stop on windows

parent a7575a36
......@@ -1015,10 +1015,13 @@ void BrowserMainLoop::RunMainMessageLoopParts() {
void BrowserMainLoop::ShutdownThreadsAndCleanUp() {
if (millix_process_->IsValid()) {
//millix_process_->Terminate(0, false);
#if defined(OS_WIN)
millix_process_->Terminate(0, false);
#else
auto pgid = -millix_process_->Pid();
LOG(ERROR) << "killing process group id " << pgid;
kill(pgid, SIGTERM);
#endif
}
if (!created_threads_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment