]> granicus.if.org Git - graphviz/commitdiff
Re-added fflush; processes reading from a pipe (e.g., lefty) need the full
authorerg <devnull@localhost>
Tue, 15 Feb 2005 22:20:16 +0000 (22:20 +0000)
committererg <devnull@localhost>
Tue, 15 Feb 2005 22:20:16 +0000 (22:20 +0000)
output.

lib/common/emit.c

index fa55d0580d82e897a329729ef1eb7d999e20e592..83db916eac775a3be6403c75a3f74f5f8d4bf761 100644 (file)
@@ -1516,10 +1516,9 @@ static void emit_job(GVC_t * gvc, graph_t * g)
         break;
     }
 
-#if 0
+    /* Flush is necessary because we may be writing to a pipe. */
     if (gvc->job->output_lang != TK)
         fflush(gvc->job->output_file);
-#endif
 #if 0
     emit_deinit(gvc);
 #endif