Trying to run programs that don't exist leaks FDs
Andy Clayton <[email protected]> Wed, 15 Jul 2009 01:56:50 -0500
| Newsgroups | gmane.comp.sysutils.cfengine.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello,
We're running cfengine 2.2.9 on FreeBSD 7.1 compiled from ports, and it
seems that when cfengine tries to run a program that doesn't exist, it
leaks file descriptors. If this happens enough in a run, it results in
the infamous MAXFD error.
Am I mistaken, or is this a cfpopen_sh bug?
Example:
processes:
"not_running_1" restart "/does_not_exist.sh restart"
"not_running_2" restart "/does_not_exist.sh restart"
"not_running_3" restart "/does_not_exist.sh restart"
"not_running_4" restart "/does_not_exist.sh restart"
and so on...
Thanks,
Andy Clayton