From owner-svn-src-head@FreeBSD.ORG Tue Oct 16 00:24:31 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 BCE652E9 for ; Tue, 16 Oct 2012 00:24:31 +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 7EA918FC1C for ; Tue, 16 Oct 2012 00:24:30 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so5807494pbb.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=jNwuhK0pikbZvHEXhn1KDob/7Kk6Bj99XbmDPT6gEorzgtXYOW7vgV53QqFoFoZRlS gUEKOZJRDedBxRipehWmACORyZejE/wnShbh18fA7pu+Nbwp6dScxhSp5g6On2KkTtmy 8az00hVOo9sGnJWpLSmEH0hoXSaCT6OJKfupGv5QKWY0OTZ3uMQ+VAJQlIQOe3s+NMSe 1e5q2yKogKTIvIlYQb6atkPh1eWrBPtPT8bxp1BR0ZBgIUABkS1pcyXk1nJV7G5WM9Ob n5r1syj2y6HNhc0ywwUY90mQTX0+HhZSNdIgT7Uf+CtUbNfjyBz0v2X7YR6QC9muC7qm yQcg== 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: ALoCoQlMcZ5BHB35JVFfP8TIoHQgYYvWGPTiUzZqxUtyyx7rr2+lKKqOm86cpUyLbS1Lkj2Oluvk 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: 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