[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090408175603.GI32098@hoeg.nl>
Date: Wed, 8 Apr 2009 19:56:03 +0200
From: Ed Schouten <ed@...eBSD.org>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Inconsistency between PTY read() return values
Hi Alan,
* Alan Cox <alan@...rguk.ukuu.org.uk> 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? If you take the code I
mentioned and modify it to close the master device and perform a read on
the TTY, it will return 0.
--
Ed Schouten <ed@...eBSD.org>
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists