summaryrefslogtreecommitdiffstats
path: root/plugins/popen.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-09-23 08:33:06 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-09-23 08:33:06 (GMT)
commit4295decfbf06adfa1bf019d28e9044971607b2d6 (patch)
tree416ac41722c554dab36231440b0f2846375a8b82 /plugins/popen.c
parentbef0d0dd4ab04ac1189071526fae4031bec36b1d (diff)
downloadmonitoring-plugins-4295decfbf06adfa1bf019d28e9044971607b2d6.tar.gz
open_max is a library function now, it should be mp_open_maxrefs/pull/1924/head
Diffstat (limited to 'plugins/popen.c')
-rw-r--r--plugins/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/popen.c b/plugins/popen.c
index 7703afc..b395f14 100644
--- a/plugins/popen.c
+++ b/plugins/popen.c
@@ -178,7 +178,7 @@ spopen (const char *cmdstring)
178 } 178 }
179 argv[i] = NULL; 179 argv[i] = NULL;
180 180
181 long maxfd = open_max(); 181 long maxfd = mp_open_max();
182 182
183 if (childpid == NULL) { /* first time through */ 183 if (childpid == NULL) { /* first time through */
184 if ((childpid = calloc ((size_t)maxfd, sizeof (pid_t))) == NULL) 184 if ((childpid = calloc ((size_t)maxfd, sizeof (pid_t))) == NULL)