Date: Sun, 23 Jun 2002 00:47:30 -0700 (PDT) From: Paul Herman <pherman@frenchfries.net> To: "Geoffrey C. Speicher" <geoff@sea-incorporated.com> Cc: "Matthew D. Fuller" <fullermd@over-yonder.net>, <freebsd-stable@FreeBSD.ORG>, Matt Simerson <freebsd@blockads.com> Subject: Re: bug in pw, -STABLE [patch] Message-ID: <20020623000216.E37393-100000@mammoth.eat.frenchfries.net> In-Reply-To: <20020622180011.V80651-100000@sea-incorporated.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Jun 2002, Geoffrey C. Speicher wrote: > DESCRIPTION > pid_begin() will check for existence of the pid file named > _path_, and if it exists, determine whether the process whose > pid is contained therein is still running. > > [...] That's nice and all, but you really are trying to solve the wrong problem here. Remember, you want to lock a particular file and not an entire process. (Think: concurrent pw(8)s with different -V directories.) Keep it simple. Do what you mean. If you want to make changes to /etc/master.passwd then open(2) /etc/master.passwd with O_EXLOCK. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020623000216.E37393-100000>