Update Lua os.exec, SystemExec API

Multimedia / Ardour - Robin Gareus [gareus.org] - 9 August 2017 20:26 EDT

We can't use Lua to construct a PBD::SystemExec Obejct. Lifetime of the object is bound to the Lua interpreter or local function scope. Destroying the C++ object terminates the process.

Additionally to adding a dedicated method, we also override the existing os.execute Lua libary method with a rt-save (vfork, close filedescriptors) wrapper.

418570b Update Lua os.exec, SystemExec API
gtk2_ardour/luainstance.cc | 66 +++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 60 insertions(+), 6 deletions(-)

  • Share