From: Johannes Sixt Date: Fri, 14 Dec 2007 19:32:15 GMT Subject: Re: [PATCH 1/2] Fix config lockfile handling. 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