Ignore SIGPIPE in icinga2-list-objects

refs #6702
This commit is contained in:
Gunnar Beutner 2014-08-16 22:28:47 +02:00
parent fdca524cdd
commit aa2d5d1edd
1 changed files with 3 additions and 0 deletions

View File

@ -17,8 +17,11 @@
from icinga2.utils.debug import ObjectsFile
from icinga2.config import LocalStateDir
from signal import signal, SIGPIPE, SIG_DFL
def main():
signal(SIGPIPE, SIG_DFL)
fp = open(LocalStateDir + "/cache/icinga2/icinga2.debug")
of = ObjectsFile(fp)
for obj in of: