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