pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flushing the journal


From: Ben Pfaff
Subject: Re: flushing the journal
Date: Fri, 30 Jul 2010 10:08:54 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

address@hidden (Ben Pfaff) writes:
> John Darrington <address@hidden> writes:
>> Can we change it so that the journal is flushed to disk each time
>> something is written to it?
>
> Sure.

I think that this is sufficient, although I have not tested it.
If you have time, please feel free to test it and commit it,
otherwise I'll get to it later:

diff --git a/src/output/journal.c b/src/output/journal.c
index 1a70089..83a879a 100644
--- a/src/output/journal.c
+++ b/src/output/journal.c
@@ -98,6 +98,7 @@ journal_output (struct journal_driver *j, const char *s)
     }
 
   fprintf (j->file, "%s\n", s);
+  fflush (j->file);
 }
 
 static void

-- 
"Sanity is not statistical."
--George Orwell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]