mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 85532 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85532 | russell | 2007-10-13 00:24:33 -0500 (Sat, 13 Oct 2007) | 8 lines Properly handle the case where read() may return the text for more than one CLI command at once for a remote console. (closes issue #10888) Reported by: jamesgolovich Patches: asterisk-climultiple.diff.txt uploaded by jamesgolovich (license 176) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -963,7 +963,7 @@ static void *netconsole(void *vconsole)
|
||||
break;
|
||||
}
|
||||
tmp[res] = 0;
|
||||
ast_cli_command(con->fd, tmp);
|
||||
ast_cli_command_multiple(con->fd, res, tmp);
|
||||
}
|
||||
if (fds[1].revents) {
|
||||
res = read(con->p[0], tmp, sizeof(tmp));
|
||||
|
Reference in New Issue
Block a user