diff compat.h @ 19:5c6155c8e9b6

Handle signals Handled signals are generally blocked and only unblocked when doing blocking I/O, i.e. either when reading commands or printing results. A (possibly queued) signal will then interrupt I/O and can be dealt with in the main loop.
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Fri, 01 Sep 2017 22:33:41 +0200
parents 1e39a251cbe9
children 5bdea77d0c1d
line wrap: on
line diff
--- a/compat.h	Thu Aug 24 13:10:56 2017 +0200
+++ b/compat.h	Fri Sep 01 22:33:41 2017 +0200
@@ -31,6 +31,10 @@
 #include "compat/asprintf.h"
 #endif /* !HAVE_ASPRINTF */
 
+#ifndef	HAVE_CLOSEFROM
+#include "compat/closefrom.h"
+#endif /* !HAVE_CLOSEFROM */
+
 #ifndef	HAVE_ERR_H
 #include "compat/err.h"
 #endif /* !HAVE_ERR_H */