Also save the header length and offset in the aft.
[paraslash.git] / signal.h
1 /*
2 * Copyright (C) 2007 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file signal.h exported symbols from signal.c */
8
9 /**
10 * Task for signal handling.
11 */
12 struct signal_task {
13 /** The signal pipe. */
14 int fd;
15 /** The number of the most recent signal. */
16 int signum;
17 /** The associated task structure. */
18 struct task task;
19 };
20
21 int para_signal_init(void);
22 int para_install_sighandler(int);
23 void para_reap_children(void);
24 int para_reap_child(pid_t *pid);
25 int para_next_signal(void);
26 void para_signal_shutdown(void);