mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Merged revisions 115886 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r115886 | tilghman | 2008-05-13 13:38:11 -0500 (Tue, 13 May 2008) | 11 lines Merged revisions 115884 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r115884 | tilghman | 2008-05-13 13:36:13 -0500 (Tue, 13 May 2008) | 3 lines If the socket dies (read returns 0=EOF), return immediately. (Closes issue #12637) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2440,7 +2440,7 @@ static void ast_remotecontrol(char * data)
|
|||||||
char buf[512] = "", *curline = buf, *nextline;
|
char buf[512] = "", *curline = buf, *nextline;
|
||||||
int not_written = 1;
|
int not_written = 1;
|
||||||
|
|
||||||
if (read(ast_consock, buf, sizeof(buf) - 1) < 0) {
|
if (read(ast_consock, buf, sizeof(buf) - 1) <= 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user