add docstring and Ctrl+C instruction

This commit is contained in:
Filip Valder
2016-12-12 08:33:32 +01:00
parent 60ec4552b9
commit 41f9830808

View File

@@ -312,7 +312,13 @@ def outgoing_work_queue_put(msg):
def graceful_stop():
log.warning("graceful_stop is not yet implemented...")
"""
Here is the place to perform shutdown actions.
Do whatever is needed to do except for leaving the main thread, which
would result in losing control of POSIX signals handling.
"""
log.warning("graceful_stop is not yet implemented, press Ctrl+C again...")
while True:
time.sleep(30)