Fix segfault.

This commit is contained in:
Marcello Stanisci 2018-07-25 12:03:26 +02:00
parent 7aee3ddc95
commit d7789d0984
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -94,11 +94,6 @@ static struct GNUNET_TIME_Relative duration;
*/
static unsigned int result;
/**
* Bank process.
*/
static struct GNUNET_OS_Process *bankd;
/**
* How many refreshes got executed.
*/
@ -313,19 +308,6 @@ run (void *cls,
result = 1;
}
/**
* Send SIGTERM and wait for process termination.
*
* @param process process to terminate.
*/
void
terminate_process (struct GNUNET_OS_Process *process)
{
GNUNET_OS_process_kill (process, SIGTERM);
GNUNET_OS_process_wait (process);
GNUNET_OS_process_destroy (process);
}
/**
* The main function of the serve tool
*
@ -433,7 +415,6 @@ main (int argc,
cfg_filename);
duration = GNUNET_TIME_absolute_get_duration (start_time);
terminate_process (bankd);
TALER_LOG_INFO ("Executed W=%u, D=%u, R=%u, operations in %s\n",
howmany_coins,