aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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