arpadboda commented on issue #612: MINIFICPP-854: Capture RTSP Frame
URL: https://github.com/apache/nifi-minifi-cpp/pull/612#issuecomment-515504140
 
 
   @phrocker : 
   
   1) env vars are inherited from the parent process, but can be overwritten.
   The overwrite we do doesn't effect the parent process (which is most 
probably a shell).
   How could the parent process (command line) overwrite the env var while 
MiNiFi is running? To be able to edit env vars while MiNiFi is running, the 
latter needs to be forked, which means copying env vars. 
   2) this concern I find valid, too, and in my opinion neither of the 
solutions we talked about (script, setting in code) protects against this. 
Moreover, I'm afraid we can't. What we can do is to check the env var in 
ontrigger logic to ensure it's still the same. In case it has been set to 
something else, we can log error and yield. Which might be better than doing 
something stupid, but still far from nice. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to