mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
plugins: rename runcmd's signal handler.
The previous name would collide with popen's. Even if the two are never used together, it's still a good idea not to have the same symbol in multiple object files.
This commit is contained in:
parent
08f5670a79
commit
332c6ef2c7
4 changed files with 4 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ main (int argc, char **argv)
|
|||
textdomain (PACKAGE);
|
||||
|
||||
/* Set signal handling and alarm */
|
||||
if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR)
|
||||
if (signal (SIGALRM, runcmd_timeout_alarm_handler) == SIG_ERR)
|
||||
usage_va(_("Cannot catch SIGALRM"));
|
||||
|
||||
/* Parse extra opts if any */
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ main (int argc, char **argv)
|
|||
textdomain (PACKAGE);
|
||||
|
||||
/* Set signal handling and alarm */
|
||||
if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) {
|
||||
if (signal (SIGALRM, runcmd_timeout_alarm_handler) == SIG_ERR) {
|
||||
usage_va(_("Cannot catch SIGALRM"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ np_runcmd_close(int fd)
|
|||
|
||||
|
||||
void
|
||||
popen_timeout_alarm_handler (int signo)
|
||||
runcmd_timeout_alarm_handler (int signo)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ typedef struct output output;
|
|||
|
||||
/** prototypes **/
|
||||
int np_runcmd(const char *, output *, output *, int);
|
||||
void popen_timeout_alarm_handler(int)
|
||||
void runcmd_timeout_alarm_handler(int)
|
||||
__attribute__((__noreturn__));
|
||||
|
||||
/* only multi-threaded plugins need to bother with this */
|
||||
|
|
|
|||
Loading…
Reference in a new issue