• Karel Koci's avatar
    subprocess: fix problem with lost stdout content · 8502ac4b
    Karel Koci authored
    I originally was thinking that Lua is doing something nasty like
    duplicating original file descriptor for stdout but it turns out that
    exec was a culprit. For some reason a call to exec truncates (or at
    least removes unfinished line) from stdout. I have no idea why it
    behaves that way but adding flush just after callback (before exec)
    solves that problem and allows us to correctly use print in callback.
    The weird part is that the same thing does not happen with stderr but
    non the less I also added flush for it.
    8502ac4b
Name
Last commit
Last update
..
data Loading commit data...
lunit-launch Loading commit data...
system Loading commit data...
Makefile Loading commit data...
Makefile.dir Loading commit data...
arguments.c Loading commit data...
backend.lua Loading commit data...
cleanup.lua Loading commit data...
coverage.lua Loading commit data...
ctest.c Loading commit data...
ctest.h Loading commit data...
events.c Loading commit data...
events.lua Loading commit data...
interpreter.c Loading commit data...
interpreter.lua Loading commit data...
journal.lua Loading commit data...
locks.c Loading commit data...
lua_coverage2info.pl Loading commit data...
luacheck.config Loading commit data...
openssl_purity.mk Loading commit data...
picosat.lua Loading commit data...
planner.lua Loading commit data...
postprocess.lua Loading commit data...
requests.lua Loading commit data...
sandbox.lua Loading commit data...
subprocess.c Loading commit data...
subprocess.lua Loading commit data...
syscnf.lua Loading commit data...
transaction.lua Loading commit data...
uri.lua Loading commit data...
util.c Loading commit data...
utils.lua Loading commit data...