[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -implement suicide
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -implement suicide |
Date: |
Tue, 30 Nov 2021 22:56:34 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 3a3d7f1f -implement suicide
3a3d7f1f is described below
commit 3a3d7f1ffbf89bf41a0304e6072817006f38ddc0
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 30 22:56:26 2021 +0100
-implement suicide
---
src/exchange/taler-exchange-httpd.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd.c
b/src/exchange/taler-exchange-httpd.c
index 0a8798ae..780c4658 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -918,16 +918,14 @@ handle_mhd_request (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Handling new request\n");
- /* Atomic operation, no need for a lock ;-) */
- cnt = __sync_add_and_fetch (&req_count,
- 1LLU);
+ cnt = req_count++;
if (req_max == cnt)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Restarting exchange service after %llu requests\n",
cnt);
(void) kill (getpid (),
- SIGHUP);
+ SIGTERM);
}
/* We're in a new async scope! */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -implement suicide,
gnunet <=