summaryrefslogtreecommitdiff
path: root/src/signals.h
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-10-02 04:15:59 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-10-02 04:16:23 +0200
commitc73aab039e232e7b57ad7d8518c052ad5654d8bd (patch)
tree462d6692030471c643d578f9f2ad93ab43cb2c0f /src/signals.h
parent4d40380ebe111182341a0ac4214f962429e9c158 (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.h1
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