[LTP] [PATCH] pty: using tcgetattr() to get attributes before re-setting it

Li Wang liwang@redhat.com
Thu Aug 16 06:49:35 CEST 2018


On Wed, Aug 15, 2018 at 6:50 PM, Cyril Hrubis <chrubis@suse.cz> wrote:

> Hi!
> I'm looking into these patches now, so if I get it right we should:
>

Thanks for taking care of this.


>
> * Add EXTPROC into lapi
> * Get the termios value, or it with the requested flags, then apply
>   tcsetattr()
> * Exit the test with TCONF if we get EINVAL from tcsetattr()
>
> Would that work for both of you?
>

I think that's right.

But maybe we have to handle the ICANON nonuniform behavior too.

As YangXiao mentioned that, reading pts will be blocked on rhel6 forever if
we don't give
newline('\n') to ptmx, but this issue not exist on rhel7.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180816/151d0126/attachment-0001.html>


More information about the ltp mailing list