mirror of
https://github.com/curl/curl.git
synced 2026-07-31 01:48:03 +03:00
add a couple more of debugging messages
This commit is contained in:
parent
961ec228d4
commit
318a7584f3
2 changed files with 10 additions and 1 deletions
|
|
@ -311,7 +311,16 @@ static int rlimit(int keep_open)
|
|||
|
||||
fd[num_open.rlim_cur] = -1;
|
||||
|
||||
sprintf(strbuff1, fmt, num_open.rlim_cur);
|
||||
sprintf(strbuff, "dup() attempt %s failed", strbuff1);
|
||||
fprintf(stderr, "%s\n", strbuff);
|
||||
|
||||
sprintf(strbuff1, fmt, num_open.rlim_cur);
|
||||
sprintf(strbuff, "fds system limit seems close to %s", strbuff1);
|
||||
fprintf(stderr, "%s\n", strbuff);
|
||||
|
||||
num_open.rlim_max = NUM_NEEDED;
|
||||
|
||||
sprintf(strbuff2, fmt, num_open.rlim_max);
|
||||
sprintf(strbuff1, fmt, num_open.rlim_cur);
|
||||
sprintf(strbuff, "fds needed %s > system limit %s",
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ static int rlimit(int keep_open)
|
|||
fprintf(stderr, "%s\n", strbuff);
|
||||
|
||||
sprintf(strbuff1, fmt, num_open.rlim_cur);
|
||||
sprintf(strbuff, "fd system limit seems close to %s", strbuff1);
|
||||
sprintf(strbuff, "fds system limit seems close to %s", strbuff1);
|
||||
fprintf(stderr, "%s\n", strbuff);
|
||||
|
||||
num_open.rlim_max = num_open.rlim_cur - SAFETY_MARGIN;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue