[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flushing the journal
From: |
John Darrington |
Subject: |
Re: flushing the journal |
Date: |
Fri, 30 Jul 2010 17:53:07 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
It seems to do the job, so I pushed it.
On Fri, Jul 30, 2010 at 10:08:54AM -0700, Ben Pfaff wrote:
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
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature