* spawn.cc (linebuf::~linebuf): Resurrect commented out (for debugging?) code.
This commit is contained in:
parent
4cf24d1442
commit
7a44ba059b
|
@ -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>
|
2003-02-10 Ralf Habacker <ralf.habacker@freenet.de>
|
||||||
|
|
||||||
* include/cygwin/in.h (in_attr_t): Define new type.
|
* include/cygwin/in.h (in_attr_t): Define new type.
|
||||||
|
|
|
@ -308,7 +308,7 @@ fhandler_termios::line_edit (const char *rptr, int nread, termios& ti)
|
||||||
else if (CCEQ (ti.c_cc[VEOF], c))
|
else if (CCEQ (ti.c_cc[VEOF], c))
|
||||||
{
|
{
|
||||||
termios_printf ("EOF");
|
termios_printf ("EOF");
|
||||||
(void) accept_input();
|
(void) accept_input ();
|
||||||
ret = line_edit_input_done;
|
ret = line_edit_input_done;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,7 +211,9 @@ process_input (void *)
|
||||||
{
|
{
|
||||||
size_t nraw = INP_BUFFER_SIZE;
|
size_t nraw = INP_BUFFER_SIZE;
|
||||||
tty_master->console->read ((void *) rawbuf, nraw);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,7 @@ class linebuf
|
||||||
char *buf;
|
char *buf;
|
||||||
size_t alloced;
|
size_t alloced;
|
||||||
linebuf () : ix (0), buf (NULL), alloced (0) {}
|
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, int len);
|
||||||
void add (const char *what) {add (what, strlen (what));}
|
void add (const char *what) {add (what, strlen (what));}
|
||||||
void prepend (const char *what, int len);
|
void prepend (const char *what, int len);
|
||||||
|
|
Loading…
Reference in New Issue