From owner-freebsd-hackers Thu Jul 18 9: 9:26 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 8110337B400 for ; Thu, 18 Jul 2002 09:09:23 -0700 (PDT) Received: from smtp.completel.fr (smtp.completel.fr [213.244.0.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C0ED43E6D for ; Thu, 18 Jul 2002 09:09:22 -0700 (PDT) (envelope-from jeremy.dhoinne@netasq.com) Received: from netasq.com (unknown [213.30.137.178]) by smtp.completel.fr (Postfix) with ESMTP id AE9B5179E5E for ; Thu, 18 Jul 2002 18:09:20 +0200 (CEST) Received: from netasq.com by completel.fr (8.10.1/8.10.1) with SMTP id g6IGHm308809 for ; Thu, 18 Jul 2002 18:17:48 +0200 (CEST) Date: Thu, 18 Jul 2002 17:58:56 +0200 From: "Jeremy D'Hoinne" To: freebsd-hackers@FreeBSD.org Subject: select() behavior when system date changes precisions. Message-Id: <20020718175856.2a5dd923.jeremy.dhoinne@netasq.com> Organization: netasq X-Mailer: Sylpheed version 0.7.8 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 I've forgottent to precise that servers involved use thread library (compilation with -pthread flag) Jeremy D'Hoinne --- original post --- 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. --------- That is a problem when summer time changes occurs, select() might block for an hour. Is this a known problem ? Is there a way that select() acts differently ? Thanks for your answers, Jeremy D'Hoinne --- end of original post --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message