summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2019-12-27 14:39:20 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit445497fe01f122f9ae164d686b23e8ef9c481e33 (patch)
treeb9ebd958c0e6ab7bde75bf6406f8f9a1b8e58aff /main.py
parent6764fc44e1391c21de4d838b409fe26a3f6e1945 (diff)
Avoid a broken pipe error on opengnsys
Diffstat (limited to 'main.py')
-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')