summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index c021219..5987705 100644
--- a/main.py
+++ b/main.py
@@ -1,7 +1,9 @@
from src.ogClient import *
from src.ogConfig import *
+from signal import signal, SIGPIPE, SIG_DFL
def main():
+ signal(SIGPIPE, SIG_DFL)
ogconfig = ogConfig()
if (not ogconfig.parserFile('cfg/ogagent.cfg')):
print ('Error: Parsing configuration file')