summaryrefslogtreecommitdiffstats
path: root/ogcli
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-04 11:59:06 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-04 11:59:06 +0100
commit31849a776cd2303ba8320372cb167585f339d11d (patch)
tree79bcabbcb2aed378c50b95ea25e9e102afa4b343 /ogcli
parentc1aae6e35e9aaed7670750acacb76781e17fa792 (diff)
ogcli: really ignore SIGPIPEv0.3.3-5
SIG_DFL needs to be used to disable SIGPIPE in python, SIG_IGN does not work.
Diffstat (limited to 'ogcli')
-rwxr-xr-xogcli2
1 files changed, 1 insertions, 1 deletions
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: