We can now specify the special value of "-1" milliseconds which is
interpreted as disabling the timeout.
No change of functionality intended.
}
if (!d.waitWhile(SystemcallPrivate::Running, do_events,
- os::timeout_min() * 60 * 1000)) {
+ os::timeout_ms())) {
if (d.state == SystemcallPrivate::Killed) {
LYXERR0("Killed: " << cmd);
return KILLED;
namespace support {
namespace os {
-int timeout_min()
+int timeout_ms()
{
- return 3;
+ // return -1 to disable the timeout completely.
+ // (-1 is a special case in SystemcallPrivate::waitWhile()).
+ return 3 * 60 * 1000;
}
///
shell_type shell();
-/// Returns no. of minutes allowed for a command to complete.
-int timeout_min();
+/// Returns no. of milliseconds allowed for a command to complete.
+int timeout_ms();
/// Name of the python interpreter
/// @param reset True if the python path should be recomputed