lkml.org 
[lkml]   [1998]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: sendfile(2) idea (was: Thread implementations)
Date
> >		sent = sendfile(outfd, fd, bytes, flags);
> > if (sent <= 0)
>
> How would Ctrl-C, etc. work? Would you get an EINTR error? Would it be
> interruptible?

If it works like send/write etc (I think it should) then we should follow
the POSIX conventions extrapolated

That is

1. If there are pending errors they are reported
2. Once we have transferred data bytes we return the number
completely sent on an error case not an error

Posix also has rules about the order of error/signal/other checks that
we can extrapolate quite sanely

Alan


-
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:43    [W:0.174 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site