known issues with current dll

Egor Duda deo@logos-m.ru
Sun Mar 18 07:12:00 GMT 2001


Hi!

Saturday, 17 March, 2001 Christopher Faylor cgf@redhat.com wrote:

CF> On Sat, Mar 17, 2001 at 04:05:36PM +0300, Egor Duda wrote:
>>to  solve  ctrl-D  problem  i  see  2 ways -- either return to the old
>>scheme,  when  master  sends dummy buffer to slave via pipe on eof, or
>>tweak   ready_to_read  stuff  for fhandler_tty_slave, so it will react
>>when  input_available_event  is  signalled, not when pipe handle does.
>>currently, i'm trying to do the latter.

CF> I think that the latter makes sense.

CF> Maybe it's time to separate the pipe stuff from the tty stuff in select.cc

this  patch  fixes  ctrl-d  problem.  this  also  make  cygwin discard
contents of input buffer in canonical mode when user type VINTR, VSTOP
or VSUSP character.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
tty-slave-read2.diff
tty-slave-read2.ChangeLog

-------------- next part --------------
2001-03-18  Egor Duda <deo@logos-m.ru>

	* fhandler.h (fhandler_tty_slave): Declare new methods.
	* select.cc (fhandler_tty_slave::select_read): New method.
	* select.cc (fhandler_tty_slave::ready_for_read): Ditto.
	* select.cc (verify_tty_slave): New function.
	* fhandler_termios.cc (fhandler_termios::line_edit): Empty input
	buffer on signal.
	* fhandler_tty.cc (fhandler_tty_slave::read): Check for input data
	after reading from pipe. Reset event if input pipe is empty.
	* tty.h (class tty): Allow creating events with manual reset.
	* tty.cc (tty::get_event): Use manual_reset flag.
	* tty.cc (tty::common_init): Create input_available_event with
	with manual reset.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tty-slave-read2.diff
Type: text/x-diff
Size: 5665 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010318/76febce2/attachment.bin>


More information about the Cygwin-patches mailing list