[Asterisk-code-review] astfd: Not maximum size of a single file but maximum file de... (asterisk[11])

Alexander Traud asteriskteam at digium.com
Wed Jun 8 06:03:05 CDT 2016


Alexander Traud has uploaded a new change for review.

  https://gerrit.asterisk.org/2967

Change subject: astfd: Not maximum size of a single file but maximum file descriptors.
......................................................................

astfd: Not maximum size of a single file but maximum file descriptors.

With menuselect "DEBUG_FD_LEAKS" and CLI "core show fd", the maximum size of a
single file was shown. Now, the maximum number of possible file descriptors is
shown.

ASTERISK-26097

Change-Id: Icf98d145774b38cac144ca76d19eaef42ce659a3
---
M main/astfd.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/67/2967/1

diff --git a/main/astfd.c b/main/astfd.c
index 35f9454..1e76703 100644
--- a/main/astfd.c
+++ b/main/astfd.c
@@ -271,7 +271,7 @@
 	case CLI_GENERATE:
 		return NULL;
 	}
-	getrlimit(RLIMIT_FSIZE, &rl);
+	getrlimit(RLIMIT_NOFILE, &rl);
 	if (rl.rlim_cur == RLIM_INFINITY || rl.rlim_max == RLIM_INFINITY) {
 		ast_copy_string(line, "unlimited", sizeof(line));
 	} else {

-- 
To view, visit https://gerrit.asterisk.org/2967
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf98d145774b38cac144ca76d19eaef42ce659a3
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>



More information about the asterisk-code-review mailing list