utils: Add a wait_sigint() function to wait for SIGINT or equivalent

This commit is contained in:
Martin Willi
2014-06-04 15:53:11 +02:00
parent 13298719e3
commit 66c0801dc7
2 changed files with 88 additions and 0 deletions
+5
View File
@@ -542,6 +542,11 @@ char *translate(char *str, const char *from, const char *to);
*/
char *strreplace(const char *str, const char *search, const char *replace);
/**
* Portable function to wait for SIGINT/SIGTERM (or equivalent).
*/
void wait_sigint();
/**
* Like dirname(3) returns the directory part of the given null-terminated
* pathname, up to but not including the final '/' (or '.' if no '/' is found).