---

** [tickets:#2697] clm: Use base::Process to execute scripts from admin-ops**

**Status:** unassigned
**Milestone:** 5.18.01
**Created:** Tue Nov 21, 2017 05:15 PM UTC by Anders Widell
**Last Updated:** Tue Nov 21, 2017 05:15 PM UTC
**Owner:** nobody


Refer to this mailing list post: 
[opensaf-devel](https://sourceforge.net/p/opensaf/mailman/message/36092893/)

Instead of executing the custom script by calling system(), we should use the 
functionality provided in base/process.h. This is preferred because it executes 
the script with a well defined environment (only the PATH environment variable 
is set, with a fixed value). Otherwise, all environment variables from clmna 
will leak into the script. Any change in environment variables in clmna could 
then be a non-backwards compatible change, if the user defined script depends 
on the value of that variable. Another benefit of the base/process.h code is 
that it lets us specify a time-out. We ought to have a time-out for the script 
execution, and execute the script in a separate thread to avoid blocking the 
main thread in clmna. This could be implemented in a similar way as for 
executing the scale-out script in CLM.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to