[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Read-only lock on RPM db



On Tue, Aug 24, 2004 at 03:59:04PM -0700, Shawn Weber wrote:
> > Hmmm, this smells like rpm-4.0.4 or earlier. That the case?
> 
> Yes, this particular build server is running version 4.0.4.  
> 
> > The solution will be to participate in the locking scheme 
> > that rpm uses, basically shared/exclusive fcntl locks on 
> > /var/lib/rpm/Packages.
> 
> How would I find out what specific process(es) has a shared/exclusive
> fcntl lock on /var/lib/rpm/Packages?
> 

Hint: Any process that has a fcntl lock on /var/lib/rpm/Packages
is linking librpmdb-X.Y.so
	rpm -q --whatrequires librpmdb-X.Y.so
and the package contains files
	rpm -ql `rpm -q --whatrequires librpmdb-X.Y.so`
and one of those files is running
	ps auxg | grep some_file_above

HTH

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]