From owner-svn-src-all@FreeBSD.ORG Mon Oct 15 23:10:41 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48D70D18 for ; Mon, 15 Oct 2012 23:10:41 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id F20AE8FC16 for ; Mon, 15 Oct 2012 23:10:40 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so5676220pad.13 for ; Mon, 15 Oct 2012 16:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=IEPY254e1n/icKULubFVefR4bu8JzGOB0SOQSxeQjv4=; b=WWBasVOlXGvQXLRYC0LeKGfTMoCSPHFBA4povzjUZ8IZARxWJriFksjgDf+OzzhxY6 UOv66sCs8LVBNIIuJxjsXyC9YHLM3IV077lEa6UVa40L8AbI5tYHCvL8B3WT6QbywrOZ wccEHE0LLo2naPiCSNlv+51z+EFAitjpHfxu4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=IEPY254e1n/icKULubFVefR4bu8JzGOB0SOQSxeQjv4=; b=Ay1/eWk1B2/sC3+kSz7z5j+/KGO2PqDbxLHSEUUtjCvKWCLyTVzlVy4xZSBAOnFzBh T4wTwUnYQmte/txxwooi4nStevhmWXQ0zQziiggvLQuqP6E/q/OfHsit6fzsmM/JnCrH zAFiJmVX3v7AXitjW5+abEFs5pLZLAW35/u5TSCsTuHk/ZtlWa5ftfcCr8CuKW5v84sT DEeCsEkZNUiRFApOcUnMeg8Kx1meWnUq8Xn/pLdRqK0+nnND8yAZkSJKCGWZNZuOl9a3 fbaFIKTfRqVZpwwzvp/qGCd7YbEmSPTZyRwfkpIXvLUZQClsqy2nQjpZzzPbw2pXWTbJ Ub3w== Received: by 10.68.200.231 with SMTP id jv7mr41090521pbc.140.1350342639707; Mon, 15 Oct 2012 16:10:39 -0700 (PDT) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.66.161.163 with HTTP; Mon, 15 Oct 2012 16:10:09 -0700 (PDT) In-Reply-To: References: <201210150821.q9F8Lobc047576@svn.freebsd.org> From: Eitan Adler Date: Mon, 15 Oct 2012 19:10:09 -0400 X-Google-Sender-Auth: Q5Pejc8QzrQDjzY5FMacr0WNoik Message-ID: Subject: Re: svn commit: r241576 - in head/usr.sbin/cron: cron crontab lib To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkC3Yzwn8eZeor7yIAghtb8SvFk7yDcKFPfNZ31KB12IuRP3V4qR3cuGm7URe9R8mjYii8M Cc: svn-src-head@freebsd.org, Maxim Sobolev , svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 23:10:41 -0000 On 15 October 2012 18:45, Adrian Chadd wrote: > Why not sleep for the amonut of time needed before the next event? If the crontab changes in the meantime. If the next event is in a week, but you modify the crontab, you don't want to sleep until next event. Why we stat the file every quantum instead of using something kqueue is a different question. -- Eitan Adler Source & Ports committer X11, Bugmeister, Ports Security teams