Follow-up Comment #3, bug #78973 (project xrootd):
Hi Lukasz,
In order to call EnvPutInt you have to have linked to libXrdClient.so since
that is where the symbol lies. However, when libXrdClient.so is loaded into
the program the static 'initializer' object (of type <anonymous
namespace>::Intializer) is constructed and in that constructor it checks the
value of 'NAME_ENABLE_FORK_HANDLERS' and at that time turns on or off the
fork handling. So as far as I can tell calling EnvPutInt will never work
since by the time one resets the value the code that looks for that value
will already have been run.
_______________________________________________________
Reply to this item at:
<http://savannah.cern.ch/bugs/?78973>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/
|