ogcli: really ignore SIGPIPE

SIG_DFL needs to be used to disable SIGPIPE in python, SIG_IGN does not work.
master v0.3.3-5
OpenGnSys Support Team 2024-01-04 11:59:06 +01:00
parent c1aae6e35e
commit 31849a776c
1 changed files with 1 additions and 1 deletions

2
ogcli
View File

@ -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: