[asterisk-bugs] [JIRA] Created: (ASTERISK-20311) Files descriptors for dummy channels need to be set to -1
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Thu Aug 23 18:22:07 CDT 2012
Files descriptors for dummy channels need to be set to -1
---------------------------------------------------------
Key: ASTERISK-20311
URL: https://issues.asterisk.org/jira/browse/ASTERISK-20311
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/General
Affects Versions: SVN, 11.0.0-beta1
Reporter: Gareth Palmer
Assignee: Gareth Palmer
Severity: Minor
ast_dummy_channel_alloc doesn't set the file descriptors for the newly created channel to -1, instead they are left as 0 which is a valid file descriptor.
Dummy channels usually aren't read from, but functions like SHELL and CURL use autoservice on the channel. Without the patch the following is printed to the console:
ERROR[10552]: channel_internal_api.c:1095 ast_channel_internal_alert_read: Alertpipe on channel lost O_NONBLOCK?!!
WARNING[10552]: channel.c:3980 __ast_read: No read routine on channel
WARNING[10549]: channel.c:1330 __ast_queue_frame: Unable to write to alert pipe on (qlen = 0): Bad file descriptor!
Patch initializes the file descriptors using the same code for normal channel allocations. Bug us minor because the function's output is returned correctly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list