From owner-svn-src-all@FreeBSD.ORG Tue Oct 16 00:24:30 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 F07F52E5 for ; Tue, 16 Oct 2012 00:24:30 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id A520C8FC1A for ; Tue, 16 Oct 2012 00:24:30 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so3025363dad.13 for ; Mon, 15 Oct 2012 17:24:30 -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=F3vNJJYJky7OS70/BHX2Eb2sAF8w31Xib+RslrW0HVY=; b=J8flDkdVeny+EXwOWO9mLr9Z+gpPART8hdJCr2MqTbpch1YMwJXOlf4IaVpYG3OrLl PNqgH8dIFBq4sbEiTOCMIRMkNai6D+ng419FyDFt+7BUWfTi+DTS+bi3MtlpvEiSA3Wc kBUasKfwdqCgvqJKw0XzDPaExJ7K6DvrPIT9Y= 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=F3vNJJYJky7OS70/BHX2Eb2sAF8w31Xib+RslrW0HVY=; b=PMLrX1qMS7VzZJtxwlaUsO7UXnjdglTkAJTDIJpmmaCEVt3PSSyJAFn9nrO0BUIbkm Chxj8fllKtILLMERte+BBw+kkPftzmfXGITC4iE+gvPyve7Q+iim2XZRNalBZUVEw/0R hXDWlYXxfQlZzr6Xf4VPVFSAqyiQ6Yx/+ccUm7OliYfxx0bxpNl+OvwU7v8sOXysIGMZ MIrnB4nJys4MDpqG5tJMwDD38wHa3fEpjoeQfJ+Gaf0Wyd0M/WmZRK979IRwSNVgQYMm HTu1QA95uPzqYV36QrG0meceGPr4l3PZAT+0oHyz3yZRqtqZ5rZVQqUy3IqUtQBII0Q9 V1cA== Received: by 10.68.242.231 with SMTP id wt7mr41594716pbc.99.1350347070079; Mon, 15 Oct 2012 17:24:30 -0700 (PDT) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.66.161.163 with HTTP; Mon, 15 Oct 2012 17:23:59 -0700 (PDT) In-Reply-To: References: <201210150821.q9F8Lobc047576@svn.freebsd.org> From: Eitan Adler Date: Mon, 15 Oct 2012 20:23:59 -0400 X-Google-Sender-Auth: DAdApl0xQHq26Z9tp5fHlIvMqWg 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: ALoCoQloOGy5a398Q1n58/+HVO1sH+Vv3qLcl3TUOFRDuuY9905lFTNEFmTkB6DHTGjwUGxJuODS 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: Tue, 16 Oct 2012 00:24:31 -0000 On 15 October 2012 19:26, Adrian Chadd wrote: > On 15 October 2012 16:10, Eitan Adler wrote: >> 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. > > Right. So "check the crontab file" event is also an event with a > timestamp in the future. > > Maybe crontab should be using a command via a socket to reload, rather > than stat'ing files.. "Why we stat the file every quantum instead of using kqueue is a different question." -- Eitan Adler Source & Ports committer X11, Bugmeister, Ports Security teams