[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: fix segfaults cause
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: fix segfaults caused by the way the payment generator killed merchants and exchanges. |
Date: |
Sat, 22 Apr 2017 16:50:52 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 70765db fix segfaults caused by the way the payment generator killed
merchants and exchanges.
70765db is described below
commit 70765db54c9fd0690e9a0865b244a3c0e5014ff4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Apr 22 16:50:23 2017 +0200
fix segfaults caused by the way the payment generator
killed merchants and exchanges.
---
src/samples/generate_payments.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/samples/generate_payments.c b/src/samples/generate_payments.c
index e5b31f7..4ecd35f 100644
--- a/src/samples/generate_payments.c
+++ b/src/samples/generate_payments.c
@@ -598,6 +598,9 @@ add_incoming_cb (void *cls,
if (MHD_HTTP_OK != http_status)
{
GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "%s",
+ json_dumps (full_response, JSON_INDENT (2)));
fail (is);
return;
}
@@ -1693,11 +1696,14 @@ main (int argc,
GNUNET_SIGNAL_handler_uninstall (shc_chld);
shc_chld = NULL;
GNUNET_DISK_pipe_close (sigpipe);
- GNUNET_OS_process_kill (merchantd,
- SIGTERM);
- GNUNET_OS_process_wait (merchantd);
- GNUNET_OS_process_destroy (merchantd);
- if (!remote_exchange)
+ if (NULL != merchantd)
+ {
+ GNUNET_OS_process_kill (merchantd,
+ SIGTERM);
+ GNUNET_OS_process_wait (merchantd);
+ GNUNET_OS_process_destroy (merchantd);
+ }
+ if (!remote_exchange && NULL != exchanged)
{
GNUNET_OS_process_kill (exchanged,
SIGTERM);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: fix segfaults caused by the way the payment generator killed merchants and exchanges.,
gnunet <=