summaryrefslogtreecommitdiffstats
path: root/lib/utils_cmd.c
AgeCommit message (Collapse)AuthorFilesLines
2023-09-23Merge pull request #1924 from RincewindsHat/compiler_warnings_4_1Lorenz Kästle1-8/+7
Centralise and refactor maxfd related functionality
2023-09-23open_max is a library function now, it should be mp_open_maxRincewindsHat1-4/+4
2023-09-22Place _cmd_pids in object not header to avoid unsused variablesRincewindsHat1-0/+10
2023-09-22Rework maxfd/open_max to avoid unused variablesRincewindsHat1-8/+7
2023-04-18Fixes for -Wnonnull-compareRincewindsHat1-4/+0
2023-04-14Fix a lot of typos reported by codespellJan Wagner1-1/+1
2019-02-15check_by_ssh: fix child process leak on timeoutsSven Nierlein1-25/+17
When check_by_ssh runs into a timeout it simply exits keeping all child processes running. Simply adopting the kill loop from runcmd_timeout_alarm_handler() fixes this. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-11-28make constants from maxfd values (#1300)Sven Nierlein1-4/+6
its good practice to use constants instead of (random) values. Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-11-28avoid a segfault, if ulimit is set to unlimitednafets1-0/+8
2014-06-28lib/utils_cmd.c - Free file descriptorSpenser Reinhardt1-0/+3
Coverity 66502 - File descriptor fd in cmd_file_read is never closed, and thus file is left open after usage throughout runtime. - SR
2014-01-19Project rename initial commit.Monitoring Plugins Development Team1-2/+2
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2010-07-02Fix cmd_run overwriting the environmentThomas Guyot-Sionnest1-4/+5
Some commands need the environment to function properly. One such example is check_ssh and check_by_ssh when a SOCKS proxy is required. This patch use setenv and extern char **environ to alter and pass the new environment to the child process Those modules have been added to Gnulib for portability.
2008-11-23Removing CVS/SVN tags and replacing with git-based versioningThomas Guyot-Sionnest1-3/+0
For contrib/, full tags have been imported from subversion git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-07-08check_procs captures stderr and adds to plugin output. This isTon Voon1-0/+18
from a merge of branch nagiosplug/branches/new_threshold_syntax 1979:1982 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2019 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30Bump /lib to GPLv3Thomas Guyot-Sionnest1-39/+40
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1913 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-21Stop double expansion of parameters for negate - works likeTon Voon1-0/+378
time command now git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1784 f882894a-f735-0410-b71e-b25c423dba1c