aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-22 17:38:51 +0100
committerThomas White <taw@physics.org>2013-02-22 17:38:51 +0100
commit4aa91c60850afd173778d9636a9497d54d52dbd2 (patch)
treec822a2d7007568bc074fe0dabc2bcca10a1d9155 /libcrystfel
parent86f0167583e78e083f69b0c010da64bf60b74c27 (diff)
Flush buffer after write_line()
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 692a860a..3c10c543 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -563,6 +563,7 @@ int is_stream(const char *filename)
void write_line(Stream *st, const char *line)
{
fprintf(st->fh, "%s\n", line);
+ fflush(st->fh);
}