]> Kevux Git Server - fll/commit
Bugfix: Functions like nanosleep() are not receiving interrupt signals and similar.
authorKevin Day <thekevinday@gmail.com>
Sun, 31 Oct 2021 04:53:13 +0000 (23:53 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 31 Oct 2021 05:02:02 +0000 (00:02 -0500)
commit3188fb69706f1a8557efa882950908ed5106df15
tree3c4479b6820d4139f12259a8dbbc04fada17a931
parent21a18f629ca1689ecb674ab16dd4fe6f5ad8b072
Bugfix: Functions like nanosleep() are not receiving interrupt signals and similar.

When the thread is created, the signals are locked out so that they can be handled within the program.
The processes thread needs to be able to receive signals.
Allow the parent thread to receive all signals.

More work may be done in the future to fine tune this.
For now, the signals are just opened up entirely unless uninterruptible is designated,
This seems to allow for the thread to be cancelled even when nanosleep() is being called.
Also pass the specific signal received that is triggering a termination.
level_3/controller/c/private-rule.c
level_3/controller/c/private-thread.c