bugmldonkey, a multi-networks file-sharing client - Bugs: bug #1459, Files in incoming are re-created...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1459: Files in incoming are re-created after they've been removed

Submitted by:  None
Submitted on:  Sat 19 Oct 2002 03:43:34 PM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: NoneStatus: None
Assigned to: NoneOpen/Closed: Closed
Release: Release: 2.00
Operating System: LinuxBinaries Origin: None
CPU type: None

Tue 02 Dec 2003 06:16:29 PM UTC, comment #1:

This patch report is very old. If the bug still exists in current
versions please post a new bug report - spiralvoice

spiralvoice <spiralvoice>
Project Administrator
Sat 19 Oct 2002 03:43:34 PM UTC, original submission:

(I downloaded the sources and built them myself)

I'm using a small script as "file_completed_cmd" that basically does the following:

mv incoming/* finished/
wget http://localhost:4080/submit?q=reshare
wget http://localhost:4080/submit?q=close_fds

It seems that sometimes a file I moved from incoming/ to finished/ is re-created. This is a problem, of course, because the after the next completed download the newly created (empty) file is moved to finished/, overwriting the original version.

I'm speculating that the reason for this could be that between the "mv" and the "reshare" someone requests the file, which is then opened with the wrong flags (O_CREATE | O_RDWR instead of O_RDONLY in C-speak). Unfortunately I don't known ocaml, so I can't really look into the problem.

Bye,
Peter

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Tue 02 Dec 2003 06:16:28 PM UTCspiralvoiceOpen/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1