[asterisk-bugs] [Asterisk 0012637]: Giving remote command halts if asterisk process stops
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue May 13 13:28:52 CDT 2008
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=12637
======================================================================
Reported By: karvan
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 12637
Category: General
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: 1.4.20
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 05-13-2008 10:33 CDT
Last Modified: 05-13-2008 13:28 CDT
======================================================================
Summary: Giving remote command halts if asterisk process
stops
Description:
When giving a command through the remote interface (ie 'rasterisk -x' or
'asterisk -rx') the process will get stuck in a loop if the original
asterisk process stops.
This happens at least with 'stop now', 'restart' and 'reload'.
Simple apply the following patch to fix this:
--- asterisk-1.4/main/asterisk.c 2008-05-09 12:50:30.000000000 +0300
+++ asterisk-fixed/main/asterisk.c 2008-05-13 18:26:09.000000000
+0300
@@ -2307,7 +2307,7 @@
char buf[512] = "", *curline = buf, *nextline;
int not_written = 1;
- if (read(ast_consock, buf, sizeof(buf) - 1) < 0)
{
+ if (read(ast_consock, buf, sizeof(buf) - 1) <= 0)
{
break;
}
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
05-13-08 13:28 Corydon76 Status new => assigned
05-13-08 13:28 Corydon76 Assigned To => Corydon76
======================================================================
More information about the asterisk-bugs
mailing list