* spawn.cc (linebuf::~linebuf): Resurrect commented out (for debugging?) code.

This commit is contained in:
Christopher Faylor 2003-02-13 02:52:41 +00:00
parent 4cf24d1442
commit 7a44ba059b
4 changed files with 10 additions and 3 deletions

View 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.

View 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;
}

View 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);
}
}

View 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);