summaryrefslogtreecommitdiffstats
path: root/ogcli
diff options
context:
space:
mode:
Diffstat (limited to 'ogcli')
-rwxr-xr-xogcli2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcli b/ogcli
index 4adc5cf..b0edcf3 100755
--- a/ogcli
+++ b/ogcli
@@ -10,6 +10,7 @@
from inspect import ismethod, getmembers
from cli.cli import OgCLI
+import signal
import argparse
import json
import sys
@@ -19,6 +20,7 @@ OG_CLI_CFG_PATH = "/opt/opengnsys/etc/ogcli.json"
class CLI():
def __init__(self):
+ signal.signal(signal.SIGPIPE, signal.SIG_IGN)
try:
with open(OG_CLI_CFG_PATH, 'r') as json_file:
self.cfg = json.load(json_file)