aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-06-17 13:25:08 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-06-17 13:25:08 +0200
commit7caef553b4061b6179c2757cb3bbd4e17e892cf7 (patch)
tree5d379fb25b6681b9d75cbbe4ade4b9d20dcae645 /src
parent083640982b8e24f7db0c268b5fd896f245456177 (diff)
download0tdns-7caef553b4061b6179c2757cb3bbd4e17e892cf7.tar.gz
0tdns-7caef553b4061b6179c2757cb3bbd4e17e892cf7.zip
use the actual exit status value
Diffstat (limited to 'src')
-rwxr-xr-xsrc/hourly.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hourly.py b/src/hourly.py
index 9563f74..4fd30a6 100755
--- a/src/hourly.py
+++ b/src/hourly.py
@@ -2,7 +2,7 @@
from sys import argv
import subprocess
-from os import path, waitpid, unlink
+from os import path, waitpid, unlink, WEXITSTATUS
from time import gmtime, strftime, sleep
import re
@@ -192,6 +192,7 @@ def do_hourly_work(hour):
if subnet:
break
+ exit_status = WEXITSTATUS(exit_status) # read man waitpid if wondering
if exit_status != 0:
if exit_status == 2:
# this means our perform_queries.py crashed... not good