summary refs log tree commit diff
path: root/synapse/util/daemonize.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/util/daemonize.py')
-rw-r--r--synapse/util/daemonize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/daemonize.py b/synapse/util/daemonize.py
index d8532411c2..f1a351cfd4 100644
--- a/synapse/util/daemonize.py
+++ b/synapse/util/daemonize.py
@@ -126,7 +126,7 @@ def daemonize_process(pid_file: str, logger: logging.Logger, chdir: str = "/") -
     signal.signal(signal.SIGTERM, sigterm)
 
     # Cleanup pid file at exit.
-    def exit():
+    def exit() -> None:
         logger.warning("Stopping daemon.")
         os.remove(pid_file)
         sys.exit(0)