Increased timeout for ct2ctml subprocess
This commit is contained in:
parent
bf5dfeaa97
commit
987578d033
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ void ct2ctml(const char* file, const int debug)
|
|||
int python_exit_code;
|
||||
try {
|
||||
exec_stream_t python;
|
||||
python.set_wait_timeout(exec_stream_t::s_child, 10000);
|
||||
python.set_wait_timeout(exec_stream_t::s_child, 1800000); // 30 minutes
|
||||
python.start(pypath(), "-i");
|
||||
stringstream output_stream;
|
||||
python.in() <<
|
||||
|
|
@ -100,7 +100,7 @@ void ct2ctml(const char* file, const int debug)
|
|||
python_exit_code = python.exit_code();
|
||||
python_output = stripws(output_stream.str());
|
||||
} catch (std::exception& err) {
|
||||
// Report failure to execute the python
|
||||
// Report failure to execute Python
|
||||
stringstream message;
|
||||
message << "Error executing python while converting input file:\n";
|
||||
message << "Python command was: '" << pypath() << "'\n";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue