borgend.py

changeset 45
aa2a95dc6093
parent 43
8f3ac19f11b6
child 46
ecb41072a1b7
--- a/borgend.py	Sun Jan 21 22:46:05 2018 +0000
+++ b/borgend.py	Sun Jan 21 23:52:35 2018 +0000
@@ -1,10 +1,12 @@
 #!/usr/local/bin/python3
 
 import os
+import sys
 import logging
 import logging.handlers
 import argparse
 import platform
+import utils
 from fifolog import FIFOHandler
 
 #
@@ -98,6 +100,7 @@
     except Exception as err:
         utils.log_exception(logger, err, detail='Exiting')
         logging.shutdown()
+        os.exit()
 
     #
     # This shit is fucked, disables ^C etc., and threading doesn't seem to help

mercurial