RC4: Allocate 8 extra bytes for send buffer.
[paraslash.git] / signal.h
index 50c5f636a84168f637ae26db9a41086d5177580f..7be960efa56c983a1f9fe0e2f0b6fb9d4e4eeddb 100644 (file)
--- a/signal.h
+++ b/signal.h
@@ -1,13 +1,26 @@
 /*
- * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2010 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
 /** \file signal.h exported symbols from signal.c */
 
+/**
+ * Task for signal handling.
+ */
+struct signal_task {
+       /** The signal pipe. */
+       int fd;
+       /** The number of the most recent signal. */
+       int signum;
+       /** The associated task structure. */
+       struct task task;
+};
+
 int para_signal_init(void);
-int para_install_sighandler(int);
-void para_reap_children(void);
-pid_t para_reap_child(void);
+void para_sigaction(int sig, void (*handler)(int));
+void para_install_sighandler(int);
+int para_reap_child(pid_t *pid);
 int para_next_signal(void);
+void para_signal_shutdown(void);