lkml.org 
[lkml]   [1998]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: patch for 2.1.103 n_tty.c
Jeanette Pauline Middelink wrote:

> Hmm, the same happens for a pipe_read. In linux-2.0.x that one
> also returned immediatly (due to the check on 0 in sys_read).
> But an read of a pipe (0 bytes as count) still blocks...
>
> I'm nt sure what the proper semantics for the read call are.
> Shouldn't it at least be the same for all read's? pipe,
> tty, fs, network, unix?

OK, I'll take a look at the pipe code as well. I would think the read()
behavior should be consistent across all devices, but perhaps someone
else will explain otherwise.

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.053 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site