Skip to content

Commit

Permalink
process, bugfix: wasm compiler worker holds fibjs process.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Sep 13, 2022
1 parent 739ba59 commit 656cbeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fibjs/src/process/process.cpp
Expand Up @@ -307,13 +307,14 @@ result_t process_base::exit()
WriteLcovData(isolate->m_isolate, g_cov);
}

#ifndef _WIN32
#ifdef _WIN32
TerminateProcess(GetCurrentProcess(), code);
#else
if (g_in_readline && isatty(_fileno(stdin)))
rl_deprep_terminal();
::_exit(code);
#endif

::exit(code);

return 0;
}

Expand Down

0 comments on commit 656cbeb

Please sign in to comment.