提交 9ebe67f1 编写于 作者: S Shen-Ta Hsieh 提交者: hydai

[WASI] Allow SIGINT and SIGTERM while waiting fd

上级 2aff169b
......@@ -2221,6 +2221,8 @@ WasiPollOneoff::body(Runtime::Instance::MemoryInstance *MemInst, uint32_t InPtr,
bool Wait() noexcept {
sigset_t Mask;
sigfillset(&Mask);
sigdelset(&Mask, SIGINT);
sigdelset(&Mask, SIGTERM);
sigdelset(&Mask, SIGRTMIN);
#if __GLIBC_PREREQ(2, 6)
const int Count =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册