From 99fbf6ca27a1bbb9cc21b0f45ef07c6c2d487482 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 19 Oct 2022 14:26:34 +0200 Subject: [PATCH] add WINIX_STARTED plugin message --- winixd/core/app.cpp | 1 + winixd/core/pluginmsg.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/winixd/core/app.cpp b/winixd/core/app.cpp index 390c7a6..38b351a 100644 --- a/winixd/core/app.cpp +++ b/winixd/core/app.cpp @@ -908,6 +908,7 @@ void App::Start() Winix::Lock lock(synchro); was_stop_signal = synchro.was_stop_signal; fcgi_request = &cur.request->fcgi_request; + plugin.Call(WINIX_STARTED); } while( !was_stop_signal && FCGX_Accept_r(fcgi_request) == 0 ) diff --git a/winixd/core/pluginmsg.h b/winixd/core/pluginmsg.h index dd02302..49a1802 100644 --- a/winixd/core/pluginmsg.h +++ b/winixd/core/pluginmsg.h @@ -316,6 +316,9 @@ namespace Winix // this can be called from a different thread but with locking #define WINIX_SAVE_FILELOG 31090 +// this message is sent when winix has been started +// it is called from the main thread (with locking) +#define WINIX_STARTED 31100 /*