mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* Added "working_directory" option that calls chdir.
* Added "session_on_completion" option which saves the session torrent when a download finishes. * Handle SIGTERM gracefully, saving session torrents etc. * Implemented session directory lockfile, use "session_lock" option to disable. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@629 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+6
-2
@@ -70,13 +70,16 @@ public:
|
||||
Control();
|
||||
~Control();
|
||||
|
||||
bool is_shutdown_completed() { return m_shutdownReceived && torrent::is_inactive(); }
|
||||
bool is_shutdown_completed() { return m_shutdownQuick && torrent::is_inactive(); }
|
||||
bool is_shutdown_received() { return m_shutdownReceived; }
|
||||
|
||||
void initialize();
|
||||
void cleanup();
|
||||
|
||||
void receive_shutdown();
|
||||
void handle_shutdown();
|
||||
|
||||
void receive_normal_shutdown() { m_shutdownReceived = true; }
|
||||
void receive_quick_shutdown() { m_shutdownReceived = true; m_shutdownQuick = true; }
|
||||
|
||||
ui::Root* ui() { return m_ui; }
|
||||
core::Manager* core() { return m_core; }
|
||||
@@ -95,6 +98,7 @@ private:
|
||||
void operator = (const Control&);
|
||||
|
||||
bool m_shutdownReceived;
|
||||
bool m_shutdownQuick;
|
||||
|
||||
ui::Root* m_ui;
|
||||
core::Manager* m_core;
|
||||
|
||||
Reference in New Issue
Block a user