From aa2d5d1edd9515155e3089cafa1d79fab2631014 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 16 Aug 2014 22:28:47 +0200 Subject: [PATCH] Ignore SIGPIPE in icinga2-list-objects refs #6702 --- python/icinga2/commands/list_objects.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/icinga2/commands/list_objects.py b/python/icinga2/commands/list_objects.py index ebcaead6c..f79367d8f 100644 --- a/python/icinga2/commands/list_objects.py +++ b/python/icinga2/commands/list_objects.py @@ -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: