History log of /openbsd/usr.sbin/cron/cron.c (Results 26 – 50 of 82)
Revision Date Author Comments
# 5ce06057 26-Oct-2015 millert <millert@openbsd.org>

Use SOCK_NONBLOCK and SOCK_CLOEXEC instead of fcntl() calls.
OK guenther@


# 5c7b7de1 26-Oct-2015 millert <millert@openbsd.org>

Remove some useless defines and the set_cron_uid() function.
OK jung@


# 52c15c8a 25-Oct-2015 millert <millert@openbsd.org>

Remove cron.pid support. We still want to avoid multiple crons
running so verify that if the cron socket exists nothing is listening
on it. OK tedu@


# f800b2d9 03-Oct-2015 tedu <tedu@openbsd.org>

unifdef some features we will always have. ok benno zhuk


# f3ce7c4e 25-Aug-2015 millert <millert@openbsd.org>

Use ppoll(2) instead of poll(2). This has two benefits. Firstly,
we can use struct timespec throughout and avoid any conversion
issues which might cause jobs to fire prematurely. Secondly, it
elim

Use ppoll(2) instead of poll(2). This has two benefits. Firstly,
we can use struct timespec throughout and avoid any conversion
issues which might cause jobs to fire prematurely. Secondly, it
eliminates a race condition that could delay us taking action on
SIGCHLD and SIGHUP. OK deraadt@ okan@ ratchov@

show more ...


# 8b04d302 09-Feb-2015 deraadt <deraadt@openbsd.org>

correct copyright, upon approval from paul vixie via todd miller. the
head copyright assertion was seperated from the remaining ones.


# 785ecd14 23-Jan-2015 tedu <tedu@openbsd.org>

braces to open a function go on their own line like god intended


# 3bca6180 23-Jan-2015 tedu <tedu@openbsd.org>

minor debug removal cleanup


# 585d9be6 23-Jan-2015 tedu <tedu@openbsd.org>

remove debug code.
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational st

remove debug code.
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational status, I think syslog
would be more appropriate. (The debug flags also disable forking
into the background, so they aren't even that useful for debugging a
live system.)
ok deraadt millert

show more ...


# 4d4e2f5a 22-Jan-2015 tedu <tedu@openbsd.org>

delete useless casts. ok deraadt guenther millert


# afc409ec 14-Jan-2015 millert <millert@openbsd.org>

Use standard types for wait, readdir, signals and pids.


# b9a887b6 26-Nov-2014 millert <millert@openbsd.org>

Prefer setvbuf() to setlinebuf() for portability; ok deraadt@


# 12c65670 29-Oct-2014 deraadt <deraadt@openbsd.org>

use poll() instead of the select malloc/free dance which was used to
avoid fd_set overflows.

Back when I was young, I fixed these throughout the tree, and the world
continued on ignoring the issue..

use poll() instead of the select malloc/free dance which was used to
avoid fd_set overflows.

Back when I was young, I fixed these throughout the tree, and the world
continued on ignoring the issue... The malloc/free dance was used because
poll() was not very portable yet. Now poll() is commonplace, and we should
use this safer API.

ok guenther millert

show more ...


# 1e5c894e 17-Apr-2013 deraadt <deraadt@openbsd.org>

Adapt cron and at for future large time_t and tv_sec types. These were some
of the harder programs to adapt, so let me know if problems happen.
tested by guenther, gilles, chl, others


# 10ee6820 22-Aug-2011 millert <millert@openbsd.org>

Use standard EXIT_SUCCESS/EXIT_FAILURE and STD{IN,OUT,ERR}_FILENO
defines instead of using custom macros. OK deraadt@ gilles@


# a1bd03fe 18-Jan-2011 millert <millert@openbsd.org>

Our crontab(1) hasn't used SIGUSR1 to signal cron in years, we now use
a Unix domain socket to trigger a reload.


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# 0ecc2073 29-Jan-2009 sobrado <sobrado@openbsd.org>

tweak usage()


# 7d6ef7f2 18-Feb-2007 jmc <jmc@openbsd.org>

tidy up synopsis and usage();


# cb354146 15-Nov-2005 miod <miod@openbsd.org>

More typos (especially indicies -> indices), checked with jmc@


# 69386091 15-Nov-2005 millert <millert@openbsd.org>

If two or more changes are made withing a single second it is possible
that only the first change will be loaded due to the granularity of
st_mtime. Work around this by zeroing the saved mtime when

If two or more changes are made withing a single second it is possible
that only the first change will be loaded due to the granularity of
st_mtime. Work around this by zeroing the saved mtime when we get
a poke on the socket from crontab or at since that means there has been
a change. Fix from Daniel Lucq.

show more ...


# a5198fa1 17-Jun-2004 millert <millert@openbsd.org>

UUpdate ISC copyright year to 2004
Remove unused macros Skip_Line and MkLower
Remove trailing whitespace


# 70805688 03-Jun-2004 millert <millert@openbsd.org>

More changes from Dmitry V. Levin:

Check return values for setgid, initgroups and setuid in code we don't compile.
Print the correct filename for the at job in mail sent.
Add some #if DEBUGGING in c

More changes from Dmitry V. Levin:

Check return values for setgid, initgroups and setuid in code we don't compile.
Print the correct filename for the at job in mail sent.
Add some #if DEBUGGING in cron.c's usage().
Set sunlen each time before using it in accept().
Don't send mail at all if MAILTO is set but empty.

show more ...


# 1a16ac32 13-May-2004 millert <millert@openbsd.org>

If we get EAGAIN reading from the cron socket check both cron and
at databases for jobs to run. Jarno Huuskonen.


# c2fb1418 03-May-2004 millert <millert@openbsd.org>

Make socket that reads reload requests from crontab be non-blocking.
Problem found by Jarno Huuskonen.


1234