signo, (void *)handler, context);
}
+void lib_signals_reset_ioloop(void)
+{
+ if (io_sig != NULL) {
+ io_remove(&io_sig);
+ io_sig = io_add(sig_pipe_fd[0], IO_READ, signal_read, NULL);
+ }
+}
+
void lib_signals_init(void)
{
int i;
void lib_signals_unset_handler(int signo,
signal_handler_t *handler, void *context);
+/* Remove and add the internal I/O handler back. This is necessary to get
+ the delayed signals to work when using multiple I/O loops. */
+void lib_signals_reset_ioloop(void);
+
void lib_signals_init(void);
void lib_signals_deinit(void);