Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Mar 2003 09:57:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Mar 2003 09:57:21 -0500 Received: from outpost.ds9a.nl ([213.244.168.210]:9895 "EHLO outpost.ds9a.nl") by vger.kernel.org with ESMTP id ; Thu, 20 Mar 2003 09:57:20 -0500 Date: Thu, 20 Mar 2003 16:08:20 +0100 From: bert hubert To: "Filipau, Ihar" Cc: "'linux-kernel@vger.kernel.org'" Subject: Re: read() & close() Message-ID: <20030320150820.GA25359@outpost.ds9a.nl> Mail-Followup-To: bert hubert , "Filipau, Ihar" , "'linux-kernel@vger.kernel.org'" References: <7A5D4FEED80CD61192F2001083FC1CF9065139@CHARLY> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7A5D4FEED80CD61192F2001083FC1CF9065139@CHARLY> User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 957 Lines: 30 On Thu, Mar 20, 2003 at 03:14:52PM +0100, Filipau, Ihar wrote: > I have/had a simple issue with multi-threaded programs: > > one thread is doing blocking read(fd) or poll({fd}) on > file/socket. You can't do poll on a file, it won't tell you anything useful, so I assume you mean a socket. > another thread is doing close(fd). > > I expected first thread will unblock with some kind > of error - but nope! It is blocked! Can you show code with this problem? Regards, bert -- http://www.PowerDNS.com Open source, database driven DNS Software http://lartc.org Linux Advanced Routing & Traffic Control HOWTO http://netherlabs.nl Consulting - 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/