utils: Add counterpart to wait_sigint() to explicitly stop waiting

This commit is contained in:
Tobias Brunner
2023-02-22 14:33:34 +01:00
parent 292eb7893f
commit 18d73a9a5c
2 changed files with 22 additions and 0 deletions
+6
View File
@@ -237,6 +237,12 @@ int sigwaitinfo(const sigset_t *set, void *info);
*/
void wait_sigint();
/**
* Portable function to send a SIGINT/SIGTERM (or equivalent) to the current
* process to exit the above function.
*/
void send_sigint();
#ifndef HAVE_CLOSEFROM
/**
* Close open file descriptors greater than or equal to lowfd.