From owner-freebsd-hackers Thu Jul 18 15:17:56 2002 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 2232037B400 for ; Thu, 18 Jul 2002 15:17:54 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 254E943E31 for ; Thu, 18 Jul 2002 15:17:48 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g6IMHU0i002930 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 19 Jul 2002 00:17:37 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g6IMHUFJ039655 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 19 Jul 2002 00:17:30 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g6IMHTWm039654; Fri, 19 Jul 2002 00:17:29 +0200 (CEST)?g (envelope-from ticso) Date: Fri, 19 Jul 2002 00:17:29 +0200 From: Bernd Walter To: "Jeremy D'Hoinne" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: select() behavior when system date changes Message-ID: <20020718221728.GB39237@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <20020718162622.60f83271.jeremy.dhoinne@netasq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020718162622.60f83271.jeremy.dhoinne@netasq.com> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 18, 2002 at 04:26:22PM +0200, Jeremy D'Hoinne wrote: > Hi, > > I have a problem with many server daemons. > select() might block for a long time if system date changes. > > --------- > Example : > at 10h00am > I call select() with a timeout argument set to 2min, > > at 10h01am, time changes to 09h59am. > > select() returns at 10h02am, it has blocked during 5 minutes. Normaly time only goes forward and never skips. > --------- > > That is a problem when summer time changes occurs, select() > might block for an hour. The time never changes. Daylight changes are only a different representation. > Is this a known problem ? > Is there a way that select() acts differently ? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message