Age | Commit message (Collapse) | Author |
|
of calling closelog() (with #ifdefs) directly.
|
|
long-standing annoyance that atrun's granularity is 10 minutes.
Most at jobs run with a 1 minute granularity. Jobs submitted via
"at now" or "batch" will run immediately. Includes a rewritten
cron(8) man page. at(1) will be integrated more closely into
cron at a future date.
Upgrading notes:
the atrun job in root's crontab should be removed.
the /var/at/spool directory is no longer used
|
|
concatenation at compile time rather than run time.
o Some minor cosmetic changes to simplify diffing.
|
|
o ANSI function headers
o return (foo) not return foo
o add -oi to sendmail flags
o update email address in man pages
o make some strings const
o completely remove globbing cruft from popen.c
o whitespace changes
o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries
|
|
|
|
|
|
|
|
o fix potential long vs. int mismatch in pid reading/writing.
Note that we can't use pid_t for the type of the variable stashed
in the pidfile since we don't have a scanf format for pid_t. Use long
instead since we know pid_t can't be bigger than a long.
o just return if closeflag is set, regardless of the value of fd
o fix potential (unwinnable?) race locking the pid file pointed out by dynamo.
Using O_EXLOCK is not portable but it does help in these situations.
|
|
variables and leave the allow/deny files open. Previously, the
allow/deny fd's were leaked during the crontab edit.
|
|
|
|
|
|
These changes were modelled after the Owl version of vixie-cron,
but developed independently.
Our crontab used to send cron SIGUSR1 to tell cron to reread the
spool dir. Now that crontab is not setuid root this doesn't work.
Instead, crontab pokes cron via a Unix domain socket located in the
tabs dir.
Please note, after these changes, the owner on user crontab files
will have to be changed manually from root to the uid of the
corresponding user for crontab to be usable. cron itself will accept
tab files owned by either root or the user.
Also, any /var/cron/{allow,deny} files must be readable by group crontab.
|
|
o check return value of fscanf()
|
|
Save the GMT offset in a global so cron_sleep can use it. This means
the offset can only change in set_time() which is really what we want.
|
|
(since time() does not change during a DST switch). This makes cron
correctly detect DST changes. It does not fix the problem of wildcard
jobs running multiple times. Also, don't rely on tm_gmtoff since that
is non-standard (but use it when we have it).
|
|
I also fixed the signal handlers while I was at it.
|
|
|
|
|
|
|
|
|
|
long it could be esp. when locales come into the picture.
|
|
|
|
|