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

Submitter:  None
Submitted:  Sat 19 Oct 2002 03:43:34 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  None Status:  None
Assigned to:  None Open/Closed:  Closed
Release:  2.00 Release: 
Operating System:  Linux Binaries 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>
Group 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2003-12-02 spiralvoice Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.12