<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Xiao,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 29, 2018 at 3:03 PM, Xiao Yang <span dir="ltr"><<a href="mailto:yangx.jy@cn.fujitsu.com" target="_blank">yangx.jy@cn.fujitsu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Li,<br>
<br>
We found other issues by running pty02:<br>
1) The undefined EXTPROC flag led to complier error on RHEL5/6.<br>
2) Based on the fix, reading pts blocked on RHEL6 because we didn't write newline('\n') to ptmx,<br>
but it worked well on RHEL7. I am not sure which kernel patch changed this behavior.<br>
According canonical mode description:<br>
In canonical mode:<br>
* Input is made available line by line. An input line is available when one of the line<br>
delimiters is typed (NL, EOL, EOL2; or EOF at the start of line). Except in the case of EOF,<br>
the line delimiter is included in the buffer returned by read(2).<br>
3) Based on the fix, <div style="font-size:small;display:inline" class="gmail_default"></div>tcsetattr(3) cannot detect invalid EXTPROC flag on RHEL5/6.<br></blockquote><div><br></div><div style="font-size:small" class="gmail_default">AFAIK, values of the c_lflag field describe the control of various functions in struct termios,</div><div style="font-size:small" class="gmail_default">but it not defined in POSIX and not supported under all Linux. So <div style="font-size:small;display:inline" class="gmail_default"></div>tcsetattr() cannot detect valid EXTPROC on RHEL5/6 is acceptable I think. Also, the ICANON has different behavior on some kind of UNIX OS too.<br><font size="2"><span style="font-family:arial,helvetica,sans-serif"></span></font><font size="2"><span style="font-family:arial,helvetica,sans-serif"></span></font></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"><font size="2">To solve these problem, maybe we have to define the EXTPROC in lapi, and skip this test on kernel without that support.</font></div><div style="font-size:small" class="gmail_default"><font size="2"><br></font></div><div style="font-size:small" class="gmail_default"><font size="2">That's what I can think of, if anything wrong, plz correct me.</font></div><div style="font-size:small" class="gmail_default"><font size="2"><br></font></div><div style="font-size:small" class="gmail_default"><font size="2">Thanks,</font></div><div style="font-size:small" class="gmail_default">Li Wang<br></div></div></div></div>