From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 24 16:33:25 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A9AF16A4CE for ; Thu, 24 Feb 2005 16:33:25 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C36243D48 for ; Thu, 24 Feb 2005 16:33:24 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j1OGUTjL032246; Thu, 24 Feb 2005 09:30:29 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 24 Feb 2005 09:30:31 -0700 (MST) Message-Id: <20050224.093031.25156907.imp@bsdimp.com> To: river_robert@yahoo.com.cn From: "M. Warner Losh" In-Reply-To: <20050224062755.6A3A143D72@mx1.FreeBSD.org> References: <20050224062755.6A3A143D72@mx1.FreeBSD.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@FreeBSD.ORG Subject: Re: "sleep" "select" system call not work correctly when linking with multithread libray--FreeBSD 4.5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 16:33:25 -0000 In message: <20050224062755.6A3A143D72@mx1.FreeBSD.org> "River" writes: : This is select testing program-- When time is set backward,the : program linked with "-pthread" option did not continue printing : anything. But using the program linked with standard library, : printing did not affected by system time backward and all is OK. This is a well know bug. The problem is that the threading library unwisely uses absolute times for the various events... Warner