* 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:
rakshasa
2006-02-01 12:11:09 +00:00
parent 6f44f8f920
commit d06ecda46a
21 changed files with 283 additions and 178 deletions
+6 -2
View File
@@ -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;