From 31849a776cd2303ba8320372cb167585f339d11d Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 4 Jan 2024 11:59:06 +0100 Subject: ogcli: really ignore SIGPIPE SIG_DFL needs to be used to disable SIGPIPE in python, SIG_IGN does not work. --- ogcli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogcli b/ogcli index 770f684..b2cbe38 100755 --- a/ogcli +++ b/ogcli @@ -23,7 +23,7 @@ def sigint_handler(signum, frame): class CLI(): def __init__(self): - signal.signal(signal.SIGPIPE, signal.SIG_IGN) + signal.signal(signal.SIGPIPE, signal.SIG_DFL) signal.signal(signal.SIGINT, sigint_handler) try: with open(OG_CLI_CFG_PATH, 'r') as json_file: -- cgit v1.2.3-18-g5258