Re: OT: why no file copy() libc/syscall ??

From: Andi Kleen
Date: Tue Nov 18 2003 - 08:56:49 EST


"H. Peter Anvin" <hpa@xxxxxxxxx> writes:

> Andrea Arcangeli wrote:
> > On Thu, Nov 13, 2003 at 04:36:26PM -0800, H. Peter Anvin wrote:
> >
> >>... or we could put in checks into the kernel for signal pending, and
> >>return EINTR.
> >
> > that would be even better indeed.
> >
>
> s/EINTR/short count/, of course :)

That would be buggy because existing users of sendfile don't know
about this and would silently only copy part of the file when a signal
happens.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/