View | Details | Raw Unified
Collapse All | Expand All

(-) src/lftp.cc (+27 lines)
 Lines 221-226    Link Here 
   return count;
   return count;
}
}
void SMTask::Cleanup()
{
  delete init_task;
}
#include <errno.h>
#include <errno.h>
#include "ResMgr.h"
#include "ResMgr.h"
ResDecl enospc_fatal ("xfer:disk-full-fatal","no",ResMgr::BoolValidate,ResMgr::NoClosure);
ResDecl enospc_fatal ("xfer:disk-full-fatal","no",ResMgr::BoolValidate,ResMgr::NoClosure);
 Lines 97-102    Link Here 
   static int TaskCount();
   static int TaskCount();
   static bool NonFatalError(int err);
   static bool NonFatalError(int err);
   static bool TemporaryNetworkError(int err);
   static bool TemporaryNetworkError(int err);
   
   static void Cleanup();
};
};
class SMTaskInit : public SMTask
class SMTaskInit : public SMTask
 Lines 93-95    Link Here 
   Ignore(SIGXFSZ);  // and EFBIG
   Ignore(SIGXFSZ);  // and EFBIG
#endif
#endif
}
}
void SignalHook::Cleanup()
{
   delete [] counts;
   delete [] old_handlers;
   delete [] old_saved;
}
 Lines 49-54    Link Here 
   static void RestoreAll();
   static void RestoreAll();
   static void ClassInit();
   static void ClassInit();
   static void Cleanup();
};
};
#endif//SIGNALHOOK_H
#endif//SIGNALHOOK_H
 Lines 28-33    Link Here 
#include "xstring.h"
#include "xstring.h"
#include "log.h"
#include "log.h"
#include "SMTask.h"
#include "SMTask.h"
#include <iostream>
using namespace std;
Log *Log::global=new Log;
Log *Log::global=new Log;
 Lines 125-130    Link Here 
   Write(l,buf);
   Write(l,buf);
}
}
void Log::Cleanup()
{
   delete global;
}
Log::~Log()
Log::~Log()
{
{
   CloseOutput();
   CloseOutput();
 Lines 84-89    Link Here 
   void ShowPID(bool yes=true) { show_pid=yes; }
   void ShowPID(bool yes=true) { show_pid=yes; }
   void ShowTime(bool yes=true) { show_time=yes; }
   void ShowTime(bool yes=true) { show_time=yes; }
   void ShowContext(bool yes=true) { show_context=yes; }
   void ShowContext(bool yes=true) { show_context=yes; }
   static void Cleanup();
};
};
#endif // LOG_H
#endif // LOG_H
 Lines 421-426    Link Here 
   ProcWait::DeleteAll();
   ProcWait::DeleteAll();
   DirColors::DeleteInstance();
   DirColors::DeleteInstance();
   IdNameCacheCleanup();
   IdNameCacheCleanup();
   SignalHook::Cleanup();
   Log::Cleanup();
   SMTask::Cleanup();
   // the tasks left: SMTaskInit, LsCache::ExpireHelper, Log::global.
   // the tasks left: SMTaskInit, LsCache::ExpireHelper, Log::global.
   int task_count=SMTask::TaskCount();
   int task_count=SMTask::TaskCount();