🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1092

Mail not removing lock files

#1092
From: Charles Hedrick
Date: Wed, 27 Jul 1988 03:10
22 lines
1214 bytes
problem:

users complain that when they exit from Mail, sometimes it hangs for
5 minutes.

diagnosis:

Under the right phase of the moon, Mail is creating
/usr/spool/mail/foo.lock, and not removing it.

cure:

in aux.c, at the end of the routine alter, there is an "exit(0);"
This seems totally spurious.  It cause the program to exit,
so the routine never returns to its caller to do unlock.  I think
one could simply remove the exit, though it is probably better
to close the file descriptor openned just above.  I don't
don't understand why this problem just started showing up.
(We don't use the utime code because we read mail via NFS.
The time can be different on our machine and the file server.
It's safer to do I/O and let the file server set the times.)
Technical Details
Message-ID: <Jul.26.23.10.15.1988.7419@athos.rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!aramis.rutgers.edu!athos.rutgers.edu!hedrick

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!aramis.rutgers.edu!athos.rutgers.edu!hedrick
From: hedrick@athos.rutgers.edu (Charles Hedrick)
Newsgroups: comp.bugs.4bsd
Subject: Mail not removing lock files
Message-ID: <Jul.26.23.10.15.1988.7419@athos.rutgers.edu>
Date: 27 Jul 88 03:10:16 GMT
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 21