* Added a default low_diskspace check for 500MB.

* Properly catch the exceptions being thrown by the 'in_*' events.

* Expand ~ in ExecFile.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@950 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-07 15:14:57 +00:00
parent 37bc4c85c4
commit ef794b8eda
9 changed files with 62 additions and 22 deletions
+7 -2
View File
@@ -43,10 +43,15 @@ namespace rpc {
class ExecFile {
public:
static const unsigned int max_args = 128;
static const unsigned int buffer_size = 4096;
static const int flag_throw = 0x1;
static const int flag_expand_tilde = 0x2;
int execute(const char* file, char* const* argv);
torrent::Object execute_object(const torrent::Object& rawArgs);
torrent::Object execute_object(const torrent::Object& rawArgs, int flags);
private: