]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reverted changes for earlier revisions 72259 to 72261. Issue #9654, #10010
authorBrett Bryant <bbryant@digium.com>
Wed, 27 Jun 2007 22:58:53 +0000 (22:58 +0000)
committerBrett Bryant <bbryant@digium.com>
Wed, 27 Jun 2007 22:58:53 +0000 (22:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@72333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index c7acd01280a38800878e5428e2e4de05b332e273..707cce811260116f201589c6b0eafeb8eff3d1df 100644 (file)
@@ -1816,9 +1816,6 @@ static void ast_remotecontrol(char * data)
        for(;;) {
                ebuf = (char *)el_gets(el, &num);
 
-               if (!ebuf && write(1, "", 1) < 0)
-                       break;
-
                if (!ast_strlen_zero(ebuf)) {
                        if (ebuf[strlen(ebuf)-1] == '\n')
                                ebuf[strlen(ebuf)-1] = '\0';
@@ -2461,9 +2458,6 @@ int main(int argc, char *argv[])
                for (;;) {
                        buf = (char *)el_gets(el, &num);
 
-                       if (!buf && write(1, "", 1) < 0)
-                               goto lostterm;
-
                        if (buf) {
                                if (buf[strlen(buf)-1] == '\n')
                                        buf[strlen(buf)-1] = '\0';
@@ -2488,6 +2482,5 @@ int main(int argc, char *argv[])
 
        monitor_sig_flags(NULL);
 
-lostterm:
        return 0;
 }