mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] [patch #5235] Lock config_files_space.tmp and delete un


From: spiralvoice
Subject: [Mldonkey-users] [patch #5235] Lock config_files_space.tmp and delete unsed file on startup
Date: Mon, 10 Jul 2006 20:00:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.8.0.4) Gecko/20060701 Firefox/1.5.0.4

URL:
  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=5235>

                 Summary: Lock config_files_space.tmp and delete unsed file
on startup
                 Project: mldonkey, a multi-networks file-sharing client
            Submitted by: spiralvoice
            Submitted on: Montag 10.07.2006 um 20:00
                Category: Improved interfaces
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

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.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Montag 10.07.2006 um 20:00  Name: config_space.patch  Size: 8,24KB  
By: spiralvoice

<http://savannah.nongnu.org/patch/download.php?file_id=10327>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=5235>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]