Re: tty_reopen() returning -EIO because port is closing

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

 



> If not, is it a bug in the tty layer?


Our tty layer has always done this.
 
> Does Posix say than an open() may fail if it's called while another
> process is calling close()?  IOW, is user-space code expected to retry
> an open() call that returns EIO?  [I've never seen user-space code
> that did that...]

Interesting question. I've never liked the fact we do it (its rude to
the userspace) but it's not clear what the correct semantics are of an
open as a port closes, given the close must complete first including any
drains and control changes and the open may well not expect to block or
hang for a long time.

Alan
 
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux