*BSD News Article 10574


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA320 ; Sun, 31 Jan 93 14:02:53 EST
Xref: sserve comp.mail.sendmail:6727 comp.unix.bsd:10627
Newsgroups: comp.mail.sendmail,comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!uunet!gatech!udel!intercon!psinntp!monymsys!sonyd1.broadcast.sony.com!bruce
From: bruce@broadcast.sony.com (Bruce Lilly)
Subject: Re: sendmail 5.65c/IDA 1.4.4 - problem
References: <C1GyHB.9Av@malihh.hanse.de>
Organization: Bruce Lilly
Date: Thu, 28 Jan 93 17:10:02 GMT
Message-ID: <1993Jan28.171002.4731@broadcast.sony.com>
Reply-To: lilb@sony.compuserve.com
Lines: 36

In article <C1GyHB.9Av@malihh.hanse.de>,
 posted to comp.mail.sendmail,comp.unix.bsd,
 clu@malihh.hanse.de (Carsten Lutz) wrote:
>( the test-programs showed no problems with this ) and compiled sendmail
>with -DGDBM ( and IDA too, of course ). 
[...]
> But when testing sendmail it complains about
>the alias-database ( there's no problem in creating one with sendmail -bi )
>is locked in some way. Looks like an EAGAIN from errno.h.
[...]
>lemmoncurry:/etc/sendmail (27) > dbm fetch usenet aliases
>aliases{.dir,.pag}: Resource temporarily unavailable
>lemmoncurry:/etc/sendmail (28) > 

Certainly looks like a file locking problem.

Could be caused by an OS bug (file locks should be dropped when a file
is closed), or by a gdbm bug related to locking (gdbm's internal locking
may conflict with sendmail's), or it may be due to problems in the
distributed version of 5.65c which reportedly has broken code regarding
database rebuilding.

Things to check:
	try another dbm package, such as Ozan Yigit's sdbm.
	look at the code in daemon.c and run with a suitable debug flag.

If you made any changes to the way databases are handled, that may
explain the problem. Specifically, it is necessary for any sendmail
daemon to close databases (including aliases) when they are not actually
being used. If a daemon is holding the aliases database open, that would
prevent another sendmail process from updating the database.
-- 
    Bruce Lilly, Product Manager,      | 
    Routers, Peripherals & Still Store,| uupsi!monymsys!sonyd1!bruce
    Sony, 3 Paragon Drive, Montvale,   | lilb@sony.compuserve.com
    NJ 07645-1735  |  Telephone: +1 201 358 4161  |  FAX: +1 201 358 4274