Subject: Re: pwdb busy
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Warner Losh <imp@village.org>
List: current-users
Date: 06/24/1997 14:39:07
In message <19970624223548.55261@pyy.jmp.fi> Jukka Marin writes:
: On Tue, Jun 24, 1997 at 02:35:16PM -0400, Andrew Brown wrote:
: > perhaps just change chfn to acquire the lock after it knows it has
: > stuff to change?
: 
: Sounds pretty good to me, unless there are some complications I can't
: see right now.

Ummm, wouldn't you have a problem of two changers at the same time?
If they both get a copy, change it, then one gets the lock and commits
that change and the second then gets the lock and makes its change,
then you'd lose the first change.  Unless the change is to a single
line in the file, in which case it would be ok.

Warner