19fe0d9ae1
This is useful to silence output in forked programs: https://bugzilla.redhat.com/show_bug.cgi?id=1287918 Tested with the following scriptlet: %post -p <lua> pid = posix.fork() if pid == 0 then assert(posix.exec("/bin/sed")) elseif pid > 0 then posix.wait(pid) end pid = posix.fork() if pid == 0 then posix.redirect2null(2) assert(posix.exec("/bin/awk")) elseif pid > 0 then posix.wait(pid) end As expected, the error message from sed is printed, the error message from awk is not. |
||
---|---|---|
.. | ||
Makefile.am | ||
linit.c | ||
linit.h | ||
linit.lch | ||
linit.lua | ||
lposix.c | ||
lposix.h | ||
lrexlib.c | ||
lrexlib.h | ||
modemuncher.c | ||
userconfig.c |