[PATCH] fhandler_tty deadlock patch
Igor Pechtchanski
pechtcha@cs.nyu.edu
Mon Oct 21 09:39:00 GMT 2002
On Mon, 21 Oct 2002, Igor Pechtchanski wrote:
> On Mon, 21 Oct 2002, Steve O wrote:
>
> > On Sun, Oct 20, 2002 at 11:15:47PM -0400, Igor Pechtchanski wrote:
> > > /bin/sh ignores Enter (or ^J, or ^M).
> >
> > Good find. I've attached a diff that should fix this. Unsure
> > how to proceed since the original patch hasn't been applied.
> > Do I resubmit the original patch or treat this one as it's own
> > thing?
>
> Thanks, I'll try it out and let you know if it works for me.
Steve,
Ok, here goes:
If a command is typed, the first Enter is still ignored, the second is
accepted, the command is executed, and then the shell exits (see
steve_o-paste-sh.strace, the command typed was 'ls').
If no command is typed, Enter exits the shell (see
steve_o-paste-sh1.strace).
Some more info: a lone Enter now kills cat as well. Strace attached
(see steve_o-paste-cat.strace, the characters typed were
'a<Space><Enter>b<Enter><Enter>').
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
-------------- next part --------------
A non-text attachment was scrubbed...
Name: steve_o-paste-sh.strace.bz2
Type: application/octet-stream
Size: 13998 bytes
Desc:
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20021021/47af689f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: steve_o-paste-sh1.strace.bz2
Type: application/octet-stream
Size: 5105 bytes
Desc:
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20021021/47af689f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: steve_o-paste-cat.strace.bz2
Type: application/octet-stream
Size: 5978 bytes
Desc:
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20021021/47af689f/attachment-0002.obj>
More information about the Cygwin-patches
mailing list