React to SIGINT signal
ODCS sends SIGINT signal. JIRA: RHELCMP-3687 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
cda67776d9
commit
f470599f6c
@ -615,6 +615,7 @@ def sigterm_handler(signum, frame):
|
||||
|
||||
|
||||
def cli_main():
|
||||
signal.signal(signal.SIGINT, sigterm_handler)
|
||||
signal.signal(signal.SIGTERM, sigterm_handler)
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user