tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Open master pty (/dev/ptmx) non blocking



On Friday 23 Sep 2022, at 17:34, David H. Gutteridge wrote:
> On Fri, 23 Sep 2022 at 20:14:23 +0000, David Holland wrote:
> > On Fri, Sep 23, 2022 at 01:39:16PM +0200, Martin Husemann wrote:
> > >      Note that unlike implementations on some other operating
> > >      systems, posix_openpt() does not return EINVAL if the value
> > >      of oflag would be deemed invalid
> >
> > That is, however, kind of a feeble excuse :-)
>
> Agreed. But I inferred this was perhaps done this way on purpose, and
> could be controversial to change.

I noticed that this might also affect Linux emulation as
pty_alloc_master() is used for both native and emualted software.

Linux emulated applications may not be prepared deal with EINVAL if
they pass e.g. O_NONBLOCK.


Home | Main Index | Thread Index | Old Index