[Rpm-ecosystem] closing stderr in lua scriptlets
zbyszek at in.waw.pl
Sun Nov 29 17:13:37 UTC 2015
I want to close stderr in lua scriptlet (after posix.fork, before
posix.exec). I'd use posix.close, but it is not exposed in the posix
module provided by rpm. Is there some other way to do this?
I could probably do os.execute('... 2>/dev/null'), but the whole point
of using lua is avoiding the shell...
PS. This works in plain lua but not in rpm:
posix = require 'posix'
pid = posix.fork()
if pid == 0 then
elseif pid > 0 then
More information about the Rpm-ecosystem