Handle sender commands in vss_post_select().
[paraslash.git] / signal.h
index 50c5f636a84168f637ae26db9a41086d5177580f..68c0ae1fceb762c0fb278e064168c57f07ec147d 100644 (file)
--- a/signal.h
+++ b/signal.h
@@ -1,13 +1,26 @@
 /*
- * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2008 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);
+int para_reap_child(pid_t *pid);
 int para_next_signal(void);
+void para_signal_shutdown(void);