[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: catch all signals
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: catch all signals in log adapter |
Date: |
Mon, 22 Jan 2018 00:16:57 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 831d35d catch all signals in log adapter
831d35d is described below
commit 831d35d8dff1e08a7e030a1a3515dfaec7aae711
Author: Florian Dold <address@hidden>
AuthorDate: Mon Jan 22 00:15:03 2018 +0100
catch all signals in log adapter
---
bin/taler-log-adapter | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bin/taler-log-adapter b/bin/taler-log-adapter
index 51d2df6..07321fa 100755
--- a/bin/taler-log-adapter
+++ b/bin/taler-log-adapter
@@ -29,7 +29,7 @@ import time
def handler(signum, frame):
if p:
- os.kill(p.pid, signal.SIGINT)
+ os.kill(p.pid, signum)
else:
sys.exit(-1)
@@ -43,7 +43,9 @@ if len(sys.argv) < 3:
sys.exit(-1)
p = None
-signal.signal(signal.SIGINT, handler)
+catchable_sigs = set(signal.Signals) - {signal.SIGKILL, signal.SIGSTOP}
+for sig in catchable_sigs:
+ signal.signal(sig, handler)
p = Popen(sys.argv[2:], stderr=PIPE, shell=False)
log = sys.argv[1]
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: catch all signals in log adapter,
gnunet <=