stop wirewatch if launching exchange fails

This commit is contained in:
Christian Grothoff 2019-03-13 04:16:22 +01:00
parent ae4b240ec2
commit bb38ff98d1
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -678,6 +678,13 @@ parallel_benchmark (TALER_TESTING_Main main_cb,
} }
GNUNET_OS_process_wait (exchanged); GNUNET_OS_process_wait (exchanged);
GNUNET_OS_process_destroy (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; return 77;
} }
if ( (MODE_CLIENT == mode) || (MODE_BOTH == mode) ) if ( (MODE_CLIENT == mode) || (MODE_BOTH == mode) )