Date: Thu, 02 Feb 2023 19:08:06 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 269292] shells/zsh fails to reset tty state on TMOUT Message-ID: <bug-269292-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269292 Bug ID: 269292 Summary: shells/zsh fails to reset tty state on TMOUT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: bapt@FreeBSD.org Reporter: fbsd@opal.com Flags: maintainer-feedback?(bapt@FreeBSD.org) Assignee: bapt@FreeBSD.org Created attachment 239865 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D239865&action= =3Dedit patch to make zsh reset tty modes on TMOUT shells/zsh fails to reset the tty state if it exits due to TMOUT expiration. Repeat by: $ zsh $ stty -a speed 9600 baud; 60 rows; 119 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl tab0 -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf rtsdtr cchars: discard =3D ^O; dsusp =3D ^Y; eof =3D ^D; eol =3D <undef>; eol2 =3D <undef>; erase =3D ^?; erase2 =3D ^H; intr =3D ^C; kill = =3D ^U; lnext =3D ^V; min =3D 1; quit =3D ^\; reprint =3D ^R; start =3D ^Q; status =3D ^T; stop =3D ^S; susp =3D ^Z; time =3D 0; werase =3D ^W; $ TMOUT=3D2 $ .. wait for timeout.. zsh: timeout $ stty -a speed 9600 baud; 60 rows; 119 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip icrnl inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl tab0 -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf rtsdtr cchars: discard =3D <undef>; dsusp =3D <undef>; eof =3D ^D; eol =3D <undef>; eol2 =3D <undef>; erase =3D ^?; erase2 =3D ^H; intr =3D ^C; kill = =3D ^U; lnext =3D <undef>; min =3D 1; quit =3D <undef>; reprint =3D ^R; start =3D ^Q; status =3D ^T; stop =3D ^S; susp =3D <undef>; time = =3D 0; werase =3D ^W; Observe that lots of chars are now <undef> and iflag inlcr is now set when = it wasn't before. I am attaching a simple patch to fix this. This should probably be sent upstream too. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269292-7788>