RTEMS | libmisc/shell: Only restore terminal settings on exit when captured (!300)
yang zhang (@yang.zhang)
gitlab at rtems.org
Tue Nov 12 02:09:47 UTC 2024
yang zhang commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/300#note_114724
I'm trying porting ssh.
Currently ssh work on no-pty mode, shell's stdin/stdout/stderr is redirected on socket pair, it does not support tcgetattr and tcsetattr.
When exiting ssh session shell, if tcgetattr failed, i think it is not neccessary to call tcsetattr again to avoid some unnecessary logs.
"PTY allocation request failed on channel 0
logs:
RTEMS Shell on no console. Use 'help' to list commands.
exit
hell: cannot reset terminal attributes (no console)"
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/300#note_114724
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241112/5137f6c5/attachment.htm>
More information about the bugs
mailing list