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
..
1999-02-09 17:23:03 +00:00
1999-02-14 22:04:09 +00:00
1999-03-10 10:11:43 +00:00
1998-12-20 02:53:49 +00:00
1998-09-13 13:28:07 +00:00
1998-06-27 21:29:35 +00:00
1998-08-30 04:48:00 +00:00
1999-03-17 11:42:18 +00:00
1999-02-09 17:23:03 +00:00
1998-10-13 08:14:31 +00:00
1998-08-04 15:25:32 +00:00
1999-03-20 04:26:57 +00:00
1999-04-01 01:42:28 +00:00
1999-02-01 21:02:38 +00:00
1998-05-03 05:10:23 +00:00
1999-02-14 20:06:02 +00:00
1998-03-12 12:54:25 +00:00
1998-08-04 15:26:57 +00:00
1998-12-13 07:16:05 +00:00
1998-08-04 14:33:42 +00:00
1998-12-03 20:44:45 +00:00
1999-02-09 17:23:03 +00:00
1999-01-10 02:10:08 +00:00
1998-12-14 09:40:15 +00:00
1998-12-14 09:40:15 +00:00
1998-11-04 08:33:32 +00:00
1998-06-29 18:15:21 +00:00
1999-03-02 04:14:53 +00:00
1999-02-23 12:02:07 +00:00