|
ppc64-diag
|
rtas_errd signal handler More...
#include <stdio.h>#include <string.h>#include <signal.h>#include <errno.h>#include <sys/types.h>#include <sys/wait.h>#include "rtas_errd.h"Functions | |
| void | sighup_handler (int sig, siginfo_t siginfo, void *context) |
| signal handler for SIGHUP More... | |
| static void | sigchld_handler (int sig) |
| SIGCHLD handler. More... | |
| void | restore_sigchld_default (void) |
| restore child signal handler More... | |
| void | setup_sigchld_handler (void) |
| setup child signal handler More... | |
Copyright (C) 2012 IBM Corporation
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
| void restore_sigchld_default | ( | void | ) |
restore_sigchld_default Restores child signal handler to default action.
References log_msg().
Referenced by check_platform_dump(), get_diag_vpd(), and retrieve_drc_name().
| void setup_sigchld_handler | ( | void | ) |
setup_sigchld_handler Setup custom child signal handler to cleanup child processes when it exited.
References log_msg(), and sigchld_handler().
Referenced by check_platform_dump(), get_diag_vpd(), main(), and retrieve_drc_name().
|
static |
sigchld_handler Cleanup child process when it exited.
Referenced by setup_sigchld_handler().
| void sighup_handler | ( | int | sig, |
| siginfo_t | siginfo, | ||
| void * | context | ||
| ) |
sighup_handler The SIGHUP signal will cause the rtas_errd daemon to re-read the configuration file. If it is currently safe to re-configure ourselves we do, otherwise we set a flag to indicate that a re-configuration needs to occur at the next "safe" place
References cfg_log(), d_cfg, diag_cfg(), ppc64_diag_config::flags, RE_CFG_RECEIVED_SIGHUP, and RE_CFG_RECFG_SAFE.
Referenced by main().
1.8.13