diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-04 11:59:06 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-04 11:59:06 +0100 |
commit | 31849a776cd2303ba8320372cb167585f339d11d (patch) | |
tree | 79bcabbcb2aed378c50b95ea25e9e102afa4b343 /ogcli | |
parent | c1aae6e35e9aaed7670750acacb76781e17fa792 (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-x | ogcli | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |