TacOS
0.2
|
Gestion des signaux. Plus de détails...
Fonctions | |
int | kill (unsigned int pid, int sig) |
int | raise (int sig) |
sighandler_t | signal (int sig, sighandler_t func) |
int | sigsuspend (const sigset_t *sigmask) |
int | sigprocmask (int how, const sigset_t *set, sigset_t *oldset) |
int | sigemptyset (sigset_t *set) |
int | sigfillset (sigset_t *set) |
int | sigaddset (sigset_t *set, int signum) |
int | sigdelset (sigset_t *set, int signum) |
int | sigismember (const sigset_t *set, int signum) |
void | sig_ignore_handler (int signal) |
void | core (int signal) |
void | sig_stop_handler (int signal) |
void | init_signals (void) |
Copyright (C) 2010-2014 TacOS developers.
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 3 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 at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
void init_signals | ( | void | ) |
Mise en place des handlers par défaut.
int kill | ( | unsigned int | pid, |
int | sig | ||
) |
Envoyer un signal à un processus.
pid | l'identifiant du processus. |
sig | le signal à envoyer. |
int raise | ( | int | sig | ) |
Envoyer un signal à l'appelant.
sig | le signal à envoyer. |
sighandler_t signal | ( | int | sig, |
sighandler_t | func | ||
) |
Met en place un handler pour un signal.
sig | le signal à catcher. |
func | fonction handler à utiliser. |