summaryrefslogtreecommitdiff
path: root/jackd/jackd.c
diff options
context:
space:
mode:
authortorben <torben@0c269be4-1314-0410-8aa9-9f06e86f4224>2011-05-29 00:47:31 +0000
committertorben <torben@0c269be4-1314-0410-8aa9-9f06e86f4224>2011-05-29 00:47:31 +0000
commit0292f85d2402bcd8ffc8c274466e561e3f251110 (patch)
treee4d83d551fb70dc5b4f1d21d2ed8d89c32c61a52 /jackd/jackd.c
parent1c7b9bb52cbd723422a0a522e880ec34b0227d5a (diff)
downloadjack1-0292f85d2402bcd8ffc8c274466e561e3f251110.tar.gz
[engine] make -C optarg a time, so that it doesnt depend on period_size
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4437 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'jackd/jackd.c')
-rw-r--r--jackd/jackd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/jackd/jackd.c b/jackd/jackd.c
index 93134ad..5c0da4a 100644
--- a/jackd/jackd.c
+++ b/jackd/jackd.c
@@ -536,7 +536,6 @@ main (int argc, char *argv[])
int do_sanity_checks = 1;
int show_version = 0;
- const char *options = "-d:P:uvshVrRZTFlt:mM:n:Np:c:X:";
const char *options = "-d:P:uvshVrRZTFlt:mM:n:Np:c:X:C:";
struct option long_options[] =
{
@@ -564,7 +563,7 @@ main (int argc, char *argv[])
{ "verbose", 0, 0, 'v' },
{ "slave-driver", 1, 0, 'X' },
{ "nozombies", 0, 0, 'Z' },
- { "timeout-thres", 1, 0, 'C' },
+ { "timeout-thres", 2, 0, 'C' },
{ 0, 0, 0, 0 }
};
int opt = 0;
@@ -603,7 +602,10 @@ main (int argc, char *argv[])
break;
case 'C':
- timeout_count_threshold = atoi (optarg);
+ if (optarg)
+ timeout_count_threshold = atoi (optarg);
+ else
+ timeout_count_threshold = 250;
break;
case 'd':