Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-synchronized access to handlers map
The user modifies the `handlers` map from his thread. However, when a signal is raised, it's on another thread: on Windows it's `WindowsStreamPump`. Therefore this map is accessed from 2 threads without synchronization. The error manifests as handler not being called. For unknown reason, we only observed it on Windows, but it seems the issue also affects Linux terminals.
- Loading branch information