aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_random.c')
-rw-r--r--src/util/crypto_random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c
index 25226a3..35d3c41 100644
--- a/src/util/crypto_random.c
+++ b/src/util/crypto_random.c
@@ -256,7 +256,7 @@ entropy_generator (void *cls, const char *what, int printchar, int current,
if (0 != GNUNET_OS_process_kill (genproc, SIGTERM))
LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "kill");
GNUNET_break (GNUNET_OK == GNUNET_OS_process_wait (genproc));
- GNUNET_OS_process_close (genproc);
+ GNUNET_OS_process_destroy (genproc);
genproc = NULL;
}
return;
@@ -274,7 +274,7 @@ entropy_generator (void *cls, const char *what, int printchar, int current,
if (0 != GNUNET_OS_process_kill (genproc, SIGTERM))
LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "kill");
GNUNET_break (GNUNET_OK == GNUNET_OS_process_wait (genproc));
- GNUNET_OS_process_close (genproc);
+ GNUNET_OS_process_destroy (genproc);
genproc = NULL;
}
LOG (GNUNET_ERROR_TYPE_INFO, _("Starting `%s' process to generate entropy\n"),
@@ -293,7 +293,7 @@ killfind ()
if (genproc != NULL)
{
GNUNET_OS_process_kill (genproc, SIGKILL);
- GNUNET_OS_process_close (genproc);
+ GNUNET_OS_process_destroy (genproc);
genproc = NULL;
}
}