From 7caef553b4061b6179c2757cb3bbd4e17e892cf7 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Wed, 17 Jun 2020 13:25:08 +0200 Subject: use the actual exit status value --- src/hourly.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3