Instances' stdout is not a terminal, so C stdio library uses a fixed size buffer as opposed to single-line buffer. This causes some output to be lost when an instance segfault or terminates unexpectedly in some other fashion.
It seems that the simplest way to fix this is changing stdout's buffering in zeus_local's initialization (with setvbuf).
Instances' stdout is not a terminal, so C stdio library uses a fixed size buffer as opposed to single-line buffer. This causes some output to be lost when an instance segfault or terminates unexpectedly in some other fashion.
It seems that the simplest way to fix this is changing stdout's buffering in
zeus_local
's initialization (withsetvbuf
).