Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263807AbTKSCNL (ORCPT ); Tue, 18 Nov 2003 21:13:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263823AbTKSCNL (ORCPT ); Tue, 18 Nov 2003 21:13:11 -0500 Received: from fw.osdl.org ([65.172.181.6]:59266 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S263807AbTKSCNK (ORCPT ); Tue, 18 Nov 2003 21:13:10 -0500 Date: Tue, 18 Nov 2003 18:12:43 -0800 (PST) From: Linus Torvalds To: Andi Kleen cc: "H. Peter Anvin" , Subject: Re: OT: why no file copy() libc/syscall ?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 21 On 14 Nov 2003, Andi Kleen wrote: > > 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. Don't be silly. Existing sendfile users had _better_ accept short writes. They happen all the time. If the destination is the network, it _will_ be interruptible. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/