On Fri, Sep 30, 2005 at 03:12:35PM +0200, Michael Petuschak wrote:
> lftp ftp.zzzzzz.net:/pub> at 15:07 -- kill all &
> [0] at 15:07 -- kill all &
> lftp ftp.lucky.net:/pub> get ls-lR
> `ls-lR' at 1844752 (2%) 325.7K/s eta:4m [Receiving data]
> Segmentation fault
Does this patch help?
--
Alexander.
Index: Job.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/Job.cc,v
retrieving revision 1.29
diff -u -p -r1.29 Job.cc
--- Job.cc 17 Dec 2003 12:59:37 -0000 1.29
+++ Job.cc 4 Oct 2005 11:58:34 -0000
@@ -77,6 +77,11 @@ Job::~Job()
scan=scan->next;
}
}
+ // if someone waits for the job, make it stop
+ {
+ for(Job *scan=chain; scan; scan=scan->next)
+ scan->RemoveWaiting(this);
+ }
// now, delete the job from the list
{
for(Job **scan=&chain; *scan; scan=&(*scan)->next)