From 775a946ac34149819c8770e9a62132b2da0c4dfa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Jun 2017 16:54:35 +0530 Subject: [PATCH] Expand on the reason for no-forking on macOS --- src/calibre/srv/standalone.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/srv/standalone.py b/src/calibre/srv/standalone.py index f524a55a54..71ba8b6e0e 100644 --- a/src/calibre/srv/standalone.py +++ b/src/calibre/srv/standalone.py @@ -275,7 +275,9 @@ libraries that the main calibre program knows about will be used. ' about clients connecting to the server and making requests. By' ' default no access logging is done.')) if not iswindows and not isosx: - # Does not work on OS X because we dont have a headless Qt backend + # Does not work on macOS because if we fork() we cannot connect to Core + # Serives which is needed by the QApplication() constructor, which in + # turn is needed by ensure_app() parser.add_option('--daemonize', default=False, action='store_true', help=_('Run process in background as a daemon.')) parser.add_option('--pidfile', default=None,