[pacman-dev] [PATCH] libalpm: add PID to db.lck
allan at archlinux.org
Sun Nov 2 21:44:41 EST 2008
Allan McRae wrote:
> This is the first step in being able to automatically remove phantom
> lock files.
> Signed-off-by: Allan McRae <allan at archlinux.org>
I should point out that this is my first attempt at writing to a file at
such a low level (I'm a C++ streams kkinda guy). I'm not sure if I need
further caution on the write line. Specifically, I think write may not
always push all bytes to the file. But given the small amount of data
being written, I am not sure if that is an issue here.
More information about the pacman-dev