]> Kevux Git Server - controller/commit
Bugfix: Final signal thread deadlocks on interrupt.
authorKevin Day <Kevin@kevux.org>
Tue, 29 Jul 2025 03:19:22 +0000 (22:19 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 29 Jul 2025 03:19:22 +0000 (22:19 -0500)
commit36f7a8102d3a980fa5a4da18855e6a5133de14a4
treedf509f2f200339d0934ed54018c6719a7f2017dd
parenta6c48608f4bbec94d3c5939d165ce8cee6eab53b
Bugfix: Final signal thread deadlocks on interrupt.

This is the same situation as seen in commit 3e9f838e9f67f9bb1a7042e1c24d3f169aa037d7.

Set the thread cancel state to `PTHREAD_CANCEL_ASYNCHRONOUS` while waiting for a signal.
Set the thread cancel state back to `PTHREAD_CANCEL_DEFERRED,` while not waiting for a signal.
sources/c/program/controller/main/thread/signal.c