OSDN Git Service

* spawn.cc (linebuf::~linebuf): Resurrect commented out (for debugging?) code.
authorcgf <cgf>
Thu, 13 Feb 2003 02:52:40 +0000 (02:52 +0000)
committercgf <cgf>
Thu, 13 Feb 2003 02:52:40 +0000 (02:52 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_termios.cc
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/spawn.cc

index 2733b40..3d4746c 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-12  Christopher Faylor  <cgf@redhat.com>
+
+       * spawn.cc (linebuf::~linebuf): Resurrect commented out (for
+       debugging?) code.
+
 2003-02-10  Ralf Habacker <ralf.habacker@freenet.de>
 
        * include/cygwin/in.h (in_attr_t): Define new type.
index 0dda010..4116464 100644 (file)
@@ -308,7 +308,7 @@ fhandler_termios::line_edit (const char *rptr, int nread, termios& ti)
       else if (CCEQ (ti.c_cc[VEOF], c))
        {
          termios_printf ("EOF");
-         (void) accept_input();
+         (void) accept_input ();
          ret = line_edit_input_done;
          continue;
        }
index 1824d37..b3bb51a 100644 (file)
@@ -211,7 +211,9 @@ process_input (void *)
     {
       size_t nraw = INP_BUFFER_SIZE;
       tty_master->console->read ((void *) rawbuf, nraw);
-      (void) tty_master->line_edit (rawbuf, nraw, tty_master->get_ttyp ()->ti);
+      if (tty_master->line_edit (rawbuf, nraw, tty_master->get_ttyp ()->ti)
+         == line_edit_signalled)
+       tty_master->console->eat_readahead (-1);
     }
 }
 
index 9b0b4a9..f6863e8 100644 (file)
@@ -211,7 +211,7 @@ class linebuf
   char *buf;
   size_t alloced;
   linebuf () : ix (0), buf (NULL), alloced (0) {}
-  ~linebuf () {/* if (buf) free (buf);*/}
+  ~linebuf () {if (buf) free (buf);}
   void add (const char *what, int len);
   void add (const char *what) {add (what, strlen (what));}
   void prepend (const char *what, int len);