mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
always add a timeout value of 200msec to jack, just like qjackctl does.
THIS IS A HACK. LONG TERM GOAL: understand why ardour gets zombified on the way up.
This commit is contained in:
parent
f85b362351
commit
9f2ab81df6
2 changed files with 7 additions and 2 deletions
|
|
@ -682,7 +682,7 @@ ARDOUR::JackCommandLineOptions::JackCommandLineOptions ()
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ARDOUR::get_jack_command_line_string (const JackCommandLineOptions& options, string& command_line)
|
ARDOUR::get_jack_command_line_string (JackCommandLineOptions& options, string& command_line)
|
||||||
{
|
{
|
||||||
vector<string> args;
|
vector<string> args;
|
||||||
|
|
||||||
|
|
@ -699,6 +699,11 @@ ARDOUR::get_jack_command_line_string (const JackCommandLineOptions& options, str
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* XXX hack to enforce qjackctl-like behaviour */
|
||||||
|
if (options.timeout == 0) {
|
||||||
|
options.timeout = 200;
|
||||||
|
}
|
||||||
|
|
||||||
if (options.timeout) {
|
if (options.timeout) {
|
||||||
args.push_back ("-t");
|
args.push_back ("-t");
|
||||||
args.push_back (to_string (options.timeout, std::dec));
|
args.push_back (to_string (options.timeout, std::dec));
|
||||||
|
|
|
||||||
|
|
@ -231,5 +231,5 @@ namespace ARDOUR {
|
||||||
/**
|
/**
|
||||||
* @return true if able to build a valid command line based on options
|
* @return true if able to build a valid command line based on options
|
||||||
*/
|
*/
|
||||||
bool get_jack_command_line_string (const JackCommandLineOptions& options, std::string& command_line);
|
bool get_jack_command_line_string (JackCommandLineOptions& options, std::string& command_line);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue