diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-03-13 04:16:22 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-03-13 04:16:22 +0100 |
commit | bb38ff98d1d0d835534b025d6e658a27d138dd84 (patch) | |
tree | 23f869f8662e70e3b323f087e58548c3e6057c8f /src/benchmark | |
parent | ae4b240ec29803be6bd56caecf8df413d7bf3851 (diff) |
stop wirewatch if launching exchange fails
Diffstat (limited to 'src/benchmark')
-rw-r--r-- | src/benchmark/taler-exchange-benchmark.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index d1ea272ea..561a9b6be 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -678,6 +678,13 @@ parallel_benchmark (TALER_TESTING_Main main_cb, } GNUNET_OS_process_wait (exchanged); GNUNET_OS_process_destroy (exchanged); + if (NULL != wirewatch) + { + GNUNET_OS_process_kill (wirewatch, + SIGTERM); + GNUNET_OS_process_wait (wirewatch); + GNUNET_OS_process_destroy (wirewatch); + } return 77; } if ( (MODE_CLIENT == mode) || (MODE_BOTH == mode) ) |