Avoid a broken pipe error on opengnsys

more_events
Alvaro Neira Ayuso 2019-12-27 14:39:20 +01:00 committed by Alvaro Neira Ayuso
parent 6764fc44e1
commit 445497fe01
1 changed files with 2 additions and 0 deletions

View File

@ -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')