Subject: Re: pwdb busy
To: Jukka Marin <firstname.lastname@example.org>
From: Warner Losh <email@example.com>
Date: 06/24/1997 14:39:07
In message <firstname.lastname@example.org> 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.