Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* lock on /var/adm/utmp blocks login/logout for 1 minute
@ 1996-10-24  4:00 Graham Soundy
  1996-10-28  5:00 ` Yaacov Fenster
  0 siblings, 1 reply; 2+ messages in thread
From: Graham Soundy @ 1996-10-24  4:00 UTC (permalink / raw)



We're having trouble with the utmp file on our dec 4710 
alpha system running osf/1 3.0.

Every few minutes a file /var/adm/utmp.lck appears, which seems to
be hard-linked to /var/adm/utmp. While this file exists (always
between 45 and 90 seconds) all login and logout attempts are blocked.

It looks like a file lock is put on /var/adm/utmp for about a minute
after users logout from telnet or rlogin sessions. This doesnt happen
with every logout, maybe about 1 in 10 - often enough to be a major
nuisance.

When the lock file exists, I run lsof to see which processes are
accessing /var/adm/utmp, this shows a few rlogind or telnetd processes.

Other attempts to diagnose this problem suggest that the lock appears
when a user logs out, and the login shell process (ksh) becomes
temporarily <defunct> rather than disappearing. Is this something
to do with losing HUP signals??  Someone out there must have seen
this problem too...

gbs.

==============================================================================
Graham Soundy                      0       Internet: g.soundy@icrf.icnet.uk
Systems Unit Manager              /.\/        Voice:       (44)171-269-3622
Imperial Cancer Research Fund      |            Fax:       (44)171-269-3124
London WC2A 3PX, UK               / \         
============================================================================




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: lock on /var/adm/utmp blocks login/logout for 1 minute
  1996-10-24  4:00 lock on /var/adm/utmp blocks login/logout for 1 minute Graham Soundy
@ 1996-10-28  5:00 ` Yaacov Fenster
  0 siblings, 0 replies; 2+ messages in thread
From: Yaacov Fenster @ 1996-10-28  5:00 UTC (permalink / raw)



In article <54o14p$5j5@charlie.lif.icnet.uk>
soundy@europa.lif.icnet.uk (Graham Soundy) wrote:

> We're having trouble with the utmp file on our dec 4710 
> alpha system running osf/1 3.0.
> 

A patch exists for removing the lockfile for the utmp and using 
flock() instead. Contact your local CSC for it.

	Yaacov

% -------------------------------------------------
% Yaacov Fenster		(603)-881-1154  DTN 381-1154
% y.fenster@ieee.org	      fenster@zk3.dec.com 
% Policy 1: All phone calls are to be returned right away.
% Policy 2: All e-mail messages are to be responded to (and hopefully resolved)
%           within 24 hours of reading.
% All the opinions voiced are mine alone and do not reflect anyone else's 
% opinion. (Including my employer's).




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-10-28  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-24  4:00 lock on /var/adm/utmp blocks login/logout for 1 minute Graham Soundy
1996-10-28  5:00 ` Yaacov Fenster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox