Bug#359237: mldonkey-server: provides few log lines at daemon startup
Hi,
spiral voice wrote:
> please try this patch:
> https://savannah.nongnu.org/patch/index.php?func=detailitem&item_id=5235
>
> This patch should resolve the problems when config_files_space.tmp
> is a left-over from a previous crash of MLDonkey.
> Now this file is kept open when MLDonkey core is running, so it
> uses one file descriptor more than before, and locks it.
> While this first MLDonkey is running a second one will fail to lock
> the file on startup and therefore refuse to start.
> If this second MLDonkey can lock config_files_space.tmp on startup
> it will be deleted and MLDonkey starts normally.
>
> This patch has to be tested on a lot of OS/distros & filesystems
> if the lock is successful before it can be applied to CVS.
> Start MLDonkey twice in the same dir, the second one should fail.
> Then start MLDonkey once, copy config_files_space.tmp somewhere
> safe, stop MLDonkey, copy config_files_space.tmp back and restart
> MLDonkey, it should delete config_files_space.tmp on startup and
> print a log message.
Thanks for the patch, I'll apply it to the Debian package.
Cheers,
Samuel.
Reply to: