[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 02/02: exchange benchmark: add option to l
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 02/02: exchange benchmark: add option to linger around after we're done |
Date: |
Thu, 23 Aug 2018 22:49:02 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
commit 9316f63b7f869cd3a9124b3a846aeb2ba2022563
Author: Florian Dold <address@hidden>
AuthorDate: Thu Aug 23 22:47:50 2018 +0200
exchange benchmark: add option to linger around after we're done
---
src/benchmark/taler-exchange-benchmark.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/benchmark/taler-exchange-benchmark.c
b/src/benchmark/taler-exchange-benchmark.c
index 26163d12..c4925546 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -198,6 +198,12 @@ static char *remote_host;
*/
static char *remote_dir;
+/**
+ * Don't kill exchange/fakebank/wirewatch until
+ * requested by the user explicitly.
+ */
+static int linger;
+
/**
* Decide which exchange account is going to be
@@ -735,6 +741,12 @@ parallel_benchmark (TALER_TESTING_Main main_cb,
if (MODE_EXCHANGE == mode)
getchar ();
+ if ( (GNUNET_YES == linger) && ( (mode == MODE_BOTH || mode == MODE_CLIENT )
) )
+ {
+ printf("press ENTER to stop\n");
+ getchar ();
+ }
+
if (MODE_CLIENT == mode)
{
GNUNET_assert (NULL != exchange_slave);
@@ -828,6 +840,10 @@ main (int argc,
"LF",
"will log to file LF",
&logfile),
+ GNUNET_GETOPT_option_flag ('K',
+ "linger",
+ "linger around until key press",
+ &linger),
GNUNET_GETOPT_OPTION_END
};
--
To stop receiving notification emails like this one, please contact
address@hidden