Introduce signal_shutdown().
[paraslash.git] / signal.c
index 92f76c7..33449c6 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -143,3 +143,8 @@ int para_next_signal(void)
        }
        return r < 0 && (errno != EAGAIN)? 0 : -E_SIGNAL_READ;
 }
+
+void para_signal_shutdown(void)
+{
+       close(signal_pipe[1]);
+}