From 2e86d4820053adc697113b117cf7fafdf264ba39 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 20 Aug 2026 06:26:21 +0800 Subject: [PATCH] Add signal handler initialization. --- {{ cookiecutter.format }}/{{ cookiecutter.class_name }}/main.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/main.m b/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/main.m index 79301c2..9fd83eb 100644 --- a/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/main.m +++ b/{{ cookiecutter.format }}/{{ cookiecutter.class_name }}/main.m @@ -81,6 +81,8 @@ int main(int argc, char *argv[]) { // Don't write bytecode; we can't modify the app bundle // after it has been signed. config.write_bytecode = 0; + // Ensure that signal handlers are installed + config.install_signal_handlers = 1; // Isolated apps need to set the full PYTHONPATH manually. config.module_search_paths_set = 1; {% if cookiecutter.python_version|minor_version >= 14 and not cookiecutter.console_app -%}