GNOME Bugzilla – Bug 343366
Beagle does not clean up lock files at startup
Last modified: 2006-08-09 15:44:22 UTC
It seems that beagle does not clean up ".lock" files in the .beagle directory. Those are found in : ~/.beagle/Indexes/GaimLogIndex/Locks ~/.beagle/Indexes/TomboyIndex/Locks ~/.beagle/Indexes/FileSystemIndex/Locks ... etc. The problem is that when beagled is shutdown unproperly (kill -9), the .lock files stay, resulting in "Lock obtain timeout" exceptions (see bug 340542). The only way to get beagle out of this situation is to remove the .lock files *by hand*... Should'nt beagle just remove all its lock files at startup ?
Fixed now in CVS.
If the locks are removed at startup then what happens if I log in to a machine twice? Are the lock files belonging to the first instance of beagled removed by the second?
> If the locks are removed at startup then what happens if I log in to a machine > twice? Are the lock files belonging to the first instance of beagled removed by > the second? I don't think so, beagle is clever enough not to launch a second deamon process when one is already present. nmaquet@AmaNiX:~$ ps -A | grep beagle 4984 ? 00:00:30 beagled 6058 ? 00:00:01 beagled-helper nmaquet@AmaNiX:~$ beagled nmaquet@AmaNiX:~$ ps -A | grep beagle 4984 ? 00:00:30 beagled 6058 ? 00:00:01 beagled-helper nmaquet@AmaNiX:~$
*** Bug 350520 has been marked as a duplicate of this bug. ***