Ticket #38999: patch_to_105748.diff
File patch_to_105748.diff, 593 bytes (added by ajdudman, 12 years ago) |
---|
-
tracelib.c
old new 432 432 433 433 /* raise the limit of open files to the maximum from the default soft limit 434 434 * of 256 */ 435 if (getrlimit(RLIMIT_NOFILE, &rl) == -1) 436 { 437 ui_warn("getrlimit failed (%d)", errno); 438 } 435 439 #if defined(__APPLE__) && defined(OPEN_MAX) 436 440 if (rl.rlim_max > OPEN_MAX) 437 441 rl.rlim_max = OPEN_MAX; 438 442 #endif 439 443 rl.rlim_cur = rl.rlim_max; 440 if (setrlimit(RLIMIT_NOFILE, &rl)==-1)444 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) 441 445 { 442 446 ui_warn("setrlimit failed (%d)", errno); 443 447 }