[lkml]   [2009]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Inconsistency between PTY read() return values
    On Wed, 8 Apr 2009 19:56:03 +0200
    Ed Schouten <> wrote:

    > Hi Alan,
    > * Alan Cox <> wrote:
    > > I would argue that TTYs do behave this way. We treat the disconnect as a
    > > hang up event. BSD sees it as EOF, Linux as hangup.
    > Would you mind explaining me the difference? I thought a modem
    > disconnect implies an end-of-file condition?

    A modem disconnect is a hang up which is quite different to an EOF and is
    effectively a security barrier as well (existing users of the tty port
    lose access to it aka revoke())

     \ /
      Last update: 2009-04-08 20:11    [W:0.018 / U:4.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site