emscripten-core / emscripten-core/emscripten

Can we emulate inter-thread signal handling such that `raise()` (i.e. `kill(getpid())`) can work between threads?

Open
#14,892 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Emscripten doesn't generally support signal, and in particular there are no support for multiple processes.

However signals send and received with a single program, and between threads, should be possible, and least in most cases. The only situation we most likely will not be able to support is the interrupting of a busy-looping thread.

See https://github.com/emscripten-core/emscripten/pull/14883 for an initial PR that begins this work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.