mirror of https://git.48k.eu/ogcli/
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
parent
c1aae6e35e
commit
31849a776c
2
ogcli
2
ogcli
|
@ -23,7 +23,7 @@ def sigint_handler(signum, frame):
|
||||||
|
|
||||||
class CLI():
|
class CLI():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
signal.signal(signal.SIGPIPE, signal.SIG_IGN)
|
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||||
signal.signal(signal.SIGINT, sigint_handler)
|
signal.signal(signal.SIGINT, sigint_handler)
|
||||||
try:
|
try:
|
||||||
with open(OG_CLI_CFG_PATH, 'r') as json_file:
|
with open(OG_CLI_CFG_PATH, 'r') as json_file:
|
||||||
|
|
Loading…
Reference in New Issue