Ticket #22297: patch-honeyd.c.diff
File patch-honeyd.c.diff, 571 bytes (added by darenzana@…, 15 years ago) |
---|
-
honeyd.c
old new 32 32 33 33 #include <sys/param.h> 34 34 #include <sys/types.h> 35 #include <sys/syslimits.h> 35 36 36 37 #ifdef HAVE_CONFIG_H 37 38 #include "config.h" … … 450 451 451 452 /* Raising file descriptor limits */ 452 453 rl.rlim_max = RLIM_INFINITY; 453 rl.rlim_cur = RLIM_INFINITY;454 rl.rlim_cur = ( OPEN_MAX < RLIM_INFINITY) ? OPEN_MAX : RLIM_INFINITY ; 454 455 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) { 455 456 /* Linux does not seem to like this */ 456 457 if (getrlimit(RLIMIT_NOFILE, &rl) == -1)