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

From: Andi Kleen
Date: Tue Nov 18 2003 - 11:08:24 EST


On Tue, 18 Nov 2003 15:49:21 +0000
Jamie Lokier <jamie@xxxxxxxxxxxxx> wrote:

> Andi Kleen wrote:
> > > 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.
>
> That doesn't make sense. There aren't any existing users of sendfile
> to copy files.

[ignore the mail, it was an stuck mail queue]

But note that arbitary changes in the signal handling would affect all users of sendfile, not just
those that attempt to copy files or do other things that should be done in user space.

-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/