diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-10-02 04:15:59 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-10-02 04:16:23 +0200 |
commit | c73aab039e232e7b57ad7d8518c052ad5654d8bd (patch) | |
tree | 462d6692030471c643d578f9f2ad93ab43cb2c0f /src/signals.h | |
parent | 4d40380ebe111182341a0ac4214f962429e9c158 (diff) |
move signal-unsafe functions out of signal handlers
A signal interrupts the blocking function calls in the main iteration, so
there is really no need to do (unsafe) heavy lifting in the signal handler.
Closes #705
Diffstat (limited to 'src/signals.h')
-rw-r--r-- | src/signals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/signals.h b/src/signals.h index 56e9ce6..505a071 100644 --- a/src/signals.h +++ b/src/signals.h @@ -28,4 +28,5 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. void setup_signal_handlers(void); extern volatile int sig_exit; +extern volatile int sig_received; #endif |