92af8170529fc1cbe3d5fa41d8bc79a2257f29d7
[paraslash.git] / signal.h
1 /*
2 * Copyright (C) 2007-2013 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 associated task structure. */
16 struct task task;
17 };
18
19 int para_signal_init(void);
20 void para_sigaction(int sig, void (*handler)(int));
21 void para_install_sighandler(int);
22 int para_reap_child(pid_t *pid);
23 int para_next_signal(fd_set *rfds);
24 void para_signal_shutdown(void);
25 void para_block_signal(int sig);
26 void para_unblock_signal(int sig);