On 01/14/10 06:11 PM, [email protected] wrote:
On Thu, Jan 14, 2010 at 05:37:19PM -0600, Shawn Walker wrote:
full webrev (complete set of changes):
http://cr.opensolaris.org/~swalker/pkg-lock-4-full/

This set of changes (I believe) resolves all of johansen's comments.

Thanks, this looks a lot better.  I think you've addressed all of my
previous concerns.  I just have a few nits remaining.

image.py:

   - lines 372-374: Sorry I didn't think of this sooner, but would you
     add the date/time the lock was acquired to what's already in the
     lockfile.  This could be useful for debugging cases where a lock is
     being held for much longer than it should have been.

Sure.

...
   - lines 365, 389-392, 398:  It seems like we might be able to avoid
     having to perform the deleted file dance if the caller truncated the
     file instead of removing it during unlock.  Does the rm accomplish
     something else that I've failed to account for?

No, the rm doesn't accomplish anything really.

The only reason I was removing the lock file was for "tidiness". The presence of the lock file really doesn't mean anything at all to the locking mechanism. It is purely used for informational purposes.

--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to