More on 4.2 mail
David Eckhardt
dae at psuvax1.UUCP
Mon Dec 10 11:10:20 AEST 1984
> If you have a heavily loaded system and mail gets heavy use it's possible for
> user's mailboxes to get scrambled through two processes writing to it at once.
> Both sendmail and /bin/mail try to prevent this by establishing a lock file
> while they're rewriting the mail file. Both (understandbly) have code that
> allows a process to break the lock after some number of seconds. As we got
> it, however, /bin/mail's time limit was 30 seconds.
>
> If anyone has a better fix I would much appreciate hearing about it.
>
> John Pierce, Chemistry, UC San Diego
> {decvax,sdcsvax}!sdchema!jwp
I've been considering using (on 4.2 systems, anyway) the flock(2)
system call--that way you shouldn't have to worry about breaking locks
prematurely. Can anybody think of any reason not to do this?
--
Spoken: Dave Eckhardt Summoned: Daemon
Net: dae @ { psuvax1. { bitnet, uucp } , penn-state.csnet}
-> "I will have no covenants but proximities" <- Emerson
More information about the Comp.unix.wizards
mailing list