Re: [PATCH 1/2] Fix config lockfile handling.
- From
Johannes Sixt <johannes.sixt@telecom.at>
- Date
- Dec 14, 2007, 19:32 UTC
- Message-ID
- <20071214193216.13C795A873@dx.sixt.local>
- In-Reply-To
- <1197660157-24109-2-git-send-email-krh@redhat.com>
Kristian Høgsberg wrote:
> When we commit or roll back the lock file the fd is automatically closed, > so don't do that again. Also, just keep the lock on the stack.
IIRC, locks are accessed from atexit(), e.g. during a die(). So you must not put one on the stack.
-- Hannes