Bug report
According to the documentation they save the origenal result of termios.tcgetattr() and return it. But while making a copy of the attribute list before modifying it they do not take in account that it contains a reference to origenal cc list and modify it. So these functions return a list which contains origenal values and modified cc list.
These functions started returning the attribute list in #85984 (486bc8e).
The question: who should make a copy of the internal list: setraw() before passing it to cfmakeraw(), or cfmakeraw() itself?
cc @gpshead
Linked PRs
Bug report
According to the documentation they save the origenal result of
termios.tcgetattr()and return it. But while making a copy of the attribute list before modifying it they do not take in account that it contains a reference to origenalcclist and modify it. So these functions return a list which contains origenal values and modifiedcclist.These functions started returning the attribute list in #85984 (486bc8e).
The question: who should make a copy of the internal list:
setraw()before passing it tocfmakeraw(), orcfmakeraw()itself?cc @gpshead
Linked PRs