From owner-svn-src-head@FreeBSD.ORG Mon Oct 15 23:10:41 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 467A3D16 for ; Mon, 15 Oct 2012 23:10:41 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EE86F8FC14 for ; Mon, 15 Oct 2012 23:10:40 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so5761903pbb.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=mZNyQP3bH1EU7JUWJRlCP+4PrhE5rZOgtswSKMy+yWwasqayWHxZuzWQu/l9NGvH69 62LZx9uEsCdhykGAPIifMjyFvWbAcaD47zUS4sb8TVEBdrH0bH9U1XDvPHJelKR9xopV fFCiNIf08AObIn4TuP5VPnH/xreheCHZmsAs4kIoEWGcvnYWhOUzNjBcYtsJhv0RfvRA toHgrG6qyS0D57dfuxM8E5+NfD5Qq/z9MgI12qEbXCyE8Vdvtl5mizhP5QLyeEpavP7t Jw21GkGaibJiUTSH+V5AX/Se2Gu4gAgMvPJkEYJ4V6DmKt695yOJcDka1rqj7fNia8UC YGBw== 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: ALoCoQkR9ZZUHD5h9i7dPDr+k5TkdhI2UT0O8A33jgjz0LzmaBn6PCF8zfUE1PtAaeqAI9VQwFJJ Cc: svn-src-head@freebsd.org, Maxim Sobolev , svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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