X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=signal.h;h=799c317fd6114046334c8577fabbe767e20eea94;hp=f853d4ccdaec0301cb042e002c4d8172850f2774;hb=656a02453498156bab09763011ff43b81db57634;hpb=acc71cb7580672e440a12d065c22a7fefd586847 diff --git a/signal.h b/signal.h index f853d4cc..799c317f 100644 --- a/signal.h +++ b/signal.h @@ -1,25 +1,24 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2007-2011 Andre Noll * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * 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 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_next_signal(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(fd_set *rfds); +void para_signal_shutdown(void);