freebsd-dev/usr.sbin/cron
Peter Wemm 5ef4895832 This is a hack. Cron runs with stdin/out/err pointing to /dev/console,
which init thoughtfully revoke()'s when starting a getty on ttyv0.  This
Cron's popen() was passing these fd's through to cron children (ie:
sendmail, *not* normal cron jobs).  The side effects were usually
not noticed, but it tripped up postfix which did a sanity check to see
that stdin/out/err were open, and got EBADF even thought the fd's were
in use.  I seem to recall sendmail itself has hacks to work around
this problem, it had a checkfd012() function, possibly for this same
problem.  (Postfix has a workaround too now though..)

This is a hack, not a fix.  It's probably best to check and perhaps
close/reopen() /dev/console if needed each time around the event loop.
It would probably be useful to actually see any error messages from cron.
1999-04-06 04:31:23 +00:00
..
cron This is a hack. Cron runs with stdin/out/err pointing to /dev/console, 1999-04-06 04:31:23 +00:00
crontab .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
doc Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
lib y2k nit: print 4 digit years correctly. 1999-01-16 01:51:03 +00:00
Makefile Paul Vixie's cron, version 3.0. Munged into bmake format. If this goes 1994-08-27 13:43:04 +00:00
Makefile.inc Added forgotten new file for -Lfoo -lbar' -> foo/bar.a' change. 1998-03-08 00:19:19 +00:00