Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
d9b5aea9
Commit
d9b5aea9
authored
8 years ago
by
zuul
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "core: Not the configured but granted number of possible file descriptors."
parents
d1006fab
ac683f13
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/asterisk.c
+12
-4
12 additions, 4 deletions
main/asterisk.c
with
12 additions
and
4 deletions
main/asterisk.c
+
12
−
4
View file @
d9b5aea9
...
...
@@ -596,6 +596,7 @@ static char *handle_show_settings(struct ast_cli_entry *e, int cmd, struct ast_c
char
buf
[
BUFSIZ
];
struct
ast_tm
tm
;
char
eid_str
[
128
];
struct
rlimit
limits
;
switch
(
cmd
)
{
case
CLI_INIT
:
...
...
@@ -617,10 +618,17 @@ static char *handle_show_settings(struct ast_cli_entry *e, int cmd, struct ast_c
ast_cli
(
a
->
fd
,
" Maximum calls: %d (Current %d)
\n
"
,
ast_option_maxcalls
,
ast_active_channels
());
else
ast_cli
(
a
->
fd
,
" Maximum calls: Not set
\n
"
);
if
(
ast_option_maxfiles
)
ast_cli
(
a
->
fd
,
" Maximum open file handles: %d
\n
"
,
ast_option_maxfiles
);
else
ast_cli
(
a
->
fd
,
" Maximum open file handles: Not set
\n
"
);
if
(
getrlimit
(
RLIMIT_NOFILE
,
&
limits
))
{
ast_cli
(
a
->
fd
,
" Maximum open file handles: Error because of %s
\n
"
,
strerror
(
errno
));
}
else
if
(
limits
.
rlim_cur
==
RLIM_INFINITY
)
{
ast_cli
(
a
->
fd
,
" Maximum open file handles: Unlimited
\n
"
);
}
else
if
(
limits
.
rlim_cur
<
ast_option_maxfiles
)
{
ast_cli
(
a
->
fd
,
" Maximum open file handles: %d (is) %d (requested)
\n
"
,
(
int
)
limits
.
rlim_cur
,
ast_option_maxfiles
);
}
else
{
ast_cli
(
a
->
fd
,
" Maximum open file handles: %d
\n
"
,
(
int
)
limits
.
rlim_cur
);
}
ast_cli
(
a
->
fd
,
" Root console verbosity: %d
\n
"
,
option_verbose
);
ast_cli
(
a
->
fd
,
" Current console verbosity: %d
\n
"
,
ast_verb_console_get
());
ast_cli
(
a
->
fd
,
" Debug level: %d
\n
"
,
option_debug
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment