diff options
author | Alvaro Neira Ayuso <aneira@soleta.eu> | 2019-12-27 14:39:20 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <alvaroneay@gmail.com> | 2020-01-19 19:50:44 +0100 |
commit | 445497fe01f122f9ae164d686b23e8ef9c481e33 (patch) | |
tree | b9ebd958c0e6ab7bde75bf6406f8f9a1b8e58aff /main.py | |
parent | 6764fc44e1391c21de4d838b409fe26a3f6e1945 (diff) |
Avoid a broken pipe error on opengnsys
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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')
|