diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-06-17 13:25:08 +0200 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-06-17 13:25:08 +0200 |
commit | 7caef553b4061b6179c2757cb3bbd4e17e892cf7 (patch) | |
tree | 5d379fb25b6681b9d75cbbe4ade4b9d20dcae645 /src | |
parent | 083640982b8e24f7db0c268b5fd896f245456177 (diff) | |
download | 0tdns-7caef553b4061b6179c2757cb3bbd4e17e892cf7.tar.gz 0tdns-7caef553b4061b6179c2757cb3bbd4e17e892cf7.zip |
use the actual exit status value
Diffstat (limited to 'src')
-rwxr-xr-x | src/hourly.py | 3 |
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 |