Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 22 Jul 2002 07:18:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 22 Jul 2002 07:17:45 -0400 Received: from pc2-cwma1-5-cust12.swa.cable.ntl.com ([80.5.121.12]:9981 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Mon, 22 Jul 2002 07:16:57 -0400 Subject: Re: EINTR on close() in Linux? From: Alan Cox To: Ketil Froyn Cc: linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 22 Jul 2002 13:32:48 +0100 Message-Id: <1027341168.31782.9.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 553 Lines: 15 On Mon, 2002-07-22 at 11:38, Ketil Froyn wrote: > > If Linux returns EINTR and tears down the fd, this code is bad because Linux doesn't return -EINTR from close(). It did for a brief while during development by accident. While the standard permits it, sanity suggests otherwise (see earlier discussions) - 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/