Wilko Bulte wrote:
> On -stable as of last week I see sendmail log errors on file descriptors
> as in:
> 
> Apr 22 09:29:16 freebie sm-msp-queue[126]: starting daemon (8.12.2): queueing
    @00:30:00
> Apr 22 09:29:50 freebie sendmail[253]: File descriptors missing on startup: s
    tdout, stderr; Bad file descriptor
> Apr 22 09:29:50 freebie sendmail[253]: g3M7To31000253: from=wkb, size=449, cl
    ass=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, relay=wkb@l
    ocalhost
> 
> etc. Mail arrives OK, mergemaster has been run.

This is usually because fstat(2) fails on file descriptors that have been
revoked.  By the time that message is printed, the /dev/console descriptors
that were inherited from /etc/rc etc would have been revoke(2)'ed by the getty
on /dev/ttyv0 or ttyd0.

cron also used to do this.  It would end up with handles to the console
that would get revoked, and sendmail would get upset when cron fired it up.
I "fixed" that a while back in cron to ensure that it had valid handles.

Have a look at lsof/fstat output for the revoked fd's, and you'll probably
find some new ones now.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to