The POSIX backend sets signal handlers for SIGINT (maybe avoidable) and
SIGCHLD (necessary for waitpid). Python up to 3.9 only allow this from
the main thread, so disable the worker feature otherwise.
Details
Details
- Reviewers
marmoute - Group Reviewers
hg-reviewers - Commits
- rHGa42502e9ae6d: worker: POSIX only supports workers from main thread (issue6460)
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
This is a bit of a proof-of-concept. The check is likely stricter than necessary, i.e. I didn't check what the constraints are for Windows.
mercurial/worker.py | ||
---|---|---|
157 | This seems like a step in the right direction (if I understand the issue correctly). However this kind of "arbitrary" restriction warrant a clear comment block to explain why we do it. |
This seems like a step in the right direction (if I understand the issue correctly). However this kind of "arbitrary" restriction warrant a clear comment block to explain why we do it.