Skip to content

Commit

Permalink
tools/nut-scanner/nut-scanner.c: bump RESERVE_FD_COUNT for NetSNMP us…
Browse files Browse the repository at this point in the history
…e of files [networkupstools#2511]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jul 17, 2024
1 parent 88e99ed commit 2c3a09e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/nut-scanner/nut-scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@
* following practical investigation summarized at
* https://github.com/networkupstools/nut/pull/1158
* and probably means the usual stdin/stdout/stderr triplet
* Another +1 is for NetSNMP which wants to open MIB files,
* potential per-host configuration files, etc.
*/
# define RESERVE_FD_COUNT 3
# define RESERVE_FD_COUNT 4
# endif /* HAVE_SYS_RESOURCE_H */
# endif /* HAVE_PTHREAD_TRYJOIN || HAVE_SEMAPHORE_UNNAMED || HAVE_SEMAPHORE_NAMED */
#endif /* HAVE_PTHREAD */
Expand Down

0 comments on commit 2c3a09e

Please sign in to comment.