Flush stream after outputting a debug line
diff --git a/debug.c b/debug.c
index 1be873b..5fb9feb 100644
--- a/debug.c
+++ b/debug.c
@@ -16,6 +16,7 @@
 	va_end(args);
 
 	output_line(NULL, "DEBUG: %s:%d: %s", file, line, buf);
+	fflush(options.output);
 }
 
 /*