Change PubSub::listen() exist on both SIGTERM and SIGINT and add Python signal handler support.#626
Change PubSub::listen() exist on both SIGTERM and SIGINT and add Python signal handler support.#626liuh-80 wants to merge 3 commits intosonic-net:masterfrom
Conversation
|
Will improve code coverage by add new UT and update later. |
|
Example code: import signal from swsscommon.signal import RegisterSignal def dummy_signal_handler(signum, frame): RegisterSignal(signal.SIGINT, dummy_signal_handler) <== register python signal handler to swss-common from swsscommon.swsscommon import ConfigDBConnector conn = ConfigDBConnector() |
2f57f9a to
b9c9abd
Compare
|
Code change in this PR need test with another PR for buildimage repo not break by this PR: sonic-net/sonic-buildimage#11100 |
|
Closed because steppan's PR have a better solution: https://github.com/Azure/sonic-swss-common/pull/624/files |
Why I did it
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)