Changeset efa89659d10da4930e2af74b0d0a6ca18c4c74b2

Show
Ignore:
Timestamp:
02/09/08 18:53:04 (10 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1202583184 +0000
git-parent:

[7192210e4ed02f4546970eb41f6da3a167b4316a]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1202583184 +0000
Message:

I don't care what you said... And treat D like exit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_console.c

    r7192210 refa8965  
    197197  int i, cnt = 32; 
    198198  cmds = alloca(32 * sizeof(*cmds)); 
    199   nc_printf(ncct, "You said: %s\n", buffer); 
    200199  i = noit_tokenize(buffer, cmds, &cnt); 
    201200  if(i>cnt) nc_printf(ncct, "Command length too long.\n"); 
     
    262261 
    263262    buffer = el_gets(ncct->el, &plen); 
    264     if(!el_eagain(ncct->el)) keep_going++; 
     263    if(!el_eagain(ncct->el)) { 
     264      if(!buffer) { 
     265        buffer = "exit"; 
     266        plen = 4; 
     267        nc_write(ncct, "\n", 1); 
     268      } 
     269      keep_going++; 
     270    } 
    265271 
    266272    len = e->opset->read(e->fd, sbuf, sizeof(sbuf)-1, &newmask, e);