mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Merged revisions 71358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r71358 | russell | 2007-06-24 15:04:21 -0500 (Sun, 24 Jun 2007) | 2 lines Revert the patch from issue 9654 due to an unexpected side effect ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2282,9 +2282,6 @@ static void ast_remotecontrol(char * data)
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
ebuf = (char *)el_gets(el, &num);
|
ebuf = (char *)el_gets(el, &num);
|
||||||
|
|
||||||
if (!ebuf)
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (!ast_strlen_zero(ebuf)) {
|
if (!ast_strlen_zero(ebuf)) {
|
||||||
if (ebuf[strlen(ebuf)-1] == '\n')
|
if (ebuf[strlen(ebuf)-1] == '\n')
|
||||||
ebuf[strlen(ebuf)-1] = '\0';
|
ebuf[strlen(ebuf)-1] = '\0';
|
||||||
@@ -2959,14 +2956,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
buf = (char *)el_gets(el, &num);
|
buf = (char *)el_gets(el, &num);
|
||||||
if (!buf)
|
if (buf) {
|
||||||
break;
|
if (buf[strlen(buf)-1] == '\n')
|
||||||
|
buf[strlen(buf)-1] = '\0';
|
||||||
|
|
||||||
if (buf[strlen(buf)-1] == '\n')
|
consolehandler((char *)buf);
|
||||||
buf[strlen(buf)-1] = '\0';
|
} else if (ast_opt_remote && (write(STDOUT_FILENO, "\nUse EXIT or QUIT to exit the asterisk console\n",
|
||||||
consolehandler((char *)buf);
|
|
||||||
|
|
||||||
if (!buf && ast_opt_remote && (write(STDOUT_FILENO, "\nUse EXIT or QUIT to exit the asterisk console\n",
|
|
||||||
strlen("\nUse EXIT or QUIT to exit the asterisk console\n")) < 0)) {
|
strlen("\nUse EXIT or QUIT to exit the asterisk console\n")) < 0)) {
|
||||||
/* Whoa, stdout disappeared from under us... Make /dev/null's */
|
/* Whoa, stdout disappeared from under us... Make /dev/null's */
|
||||||
int fd;
|
int fd;
|
||||||
|
Reference in New Issue
Block a user