Fix segfault.
This commit is contained in:
parent
7aee3ddc95
commit
d7789d0984
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user