Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2002 13:39:32 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Wilko Bulte <wkb@freebie.xs4all.nl>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: sendmail complaining about filedescriptors? 
Message-ID:  <20020422203932.0B84638CC@overcee.wemm.org>
In-Reply-To: <20020422213522.A4465@freebie.xs4all.nl> 

next in thread | previous in thread | raw e-mail | index | archive | help
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=<20020422092950.A243@freebie.xs4all.nl>, 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 - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422203932.0B84638CC>