Environment variables are not processed immediately
commit0d82400a523f9fe0c31ebd1d45343dbacaa31be0
authorJustin R. Wilson <wilsonj@unityfoundation.io>
Fri, 17 May 2024 21:20:27 +0000 (17 16:20 -0500)
committerJustin R. Wilson <wilsonj@unityfoundation.io>
Fri, 17 May 2024 21:20:27 +0000 (17 16:20 -0500)
tree56a417ec6eb92799ac272fa571c3ce51ecb3737a
parent755adffd173589dd4a841b709c62d8d2e3bbb9b7
Environment variables are not processed immediately

Problem
-------

Environment variables are not processed immediately by the Service
Participant.  For many configuration keys, this is irrelevant.  For
others, like those processed in
`Service_Participant::ConfigReaderListener::on_data_available`, it
applies the configuration immediately.

A related problem is that if there are no arguments or configuration
file, then the configuration from environment variables is not
applied.  This prevents an "environment variable only" configuration
from working properly.

Solution
--------

Invoke the listener after each environment variable is processed.
dds/DCPS/Service_Participant.cpp