1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-27 01:10:28 +01:00

finally fix for unbuffered output to solver-log

This commit is contained in:
kalmar 2017-03-22 13:24:17 +01:00
parent 3dc571a47c
commit 7796b0b028

View File

@ -76,8 +76,12 @@ function solve_SDP(SDP_problem, solver)
info(logger, Base.repr(SDP_problem))
# @time MathProgBase.writeproblem(SDP_problem, "/tmp/SDP_problem")
out = STDOUT
# to change buffering mode of stdout to _IOLBF (line bufferin)
# see https://github.com/JuliaLang/julia/issues/8765
ccall((:printf, "libc"), Int, (Ptr{UInt8},), "\n");
o = redirect_stdout(solver_logger.handlers["solver_log"].io)
# e = redirect_stderr(solver_logger.handlers["solver_log"].io)