NSSM periodically logs that it received an unhandled INTERROGATE
control. The control is sent by the system to request an update of the
service's status but NSSM always keeps the status up-to-date so no
action is needed on receipt of the control.
Rather than fill the logs with instances of such a message, NSSM will
now simply ignore the INTERROGATE control silently.
+Changes since 2.16
+-----------------
+ * Silently ignore INTERROGATE control.
+
Changes since 2.15
-----------------
* Fixed case where NSSM could kill unrelated processes when
/* Service control handler */\r
unsigned long WINAPI service_control_handler(unsigned long control, unsigned long event, void *data, void *context) {\r
switch (control) {\r
+ case SERVICE_CONTROL_INTERROGATE:\r
+ /* We always keep the service status up-to-date so this is a no-op. */\r
+ return NO_ERROR;\r
+\r
case SERVICE_CONTROL_SHUTDOWN:\r
case SERVICE_CONTROL_STOP:\r
log_service_control(service_name, control, true);\r