[Top][All Lists]

[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 07:19:30 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

John Darrington <address@hidden> writes:

>  commit acde3ac4c15984258f66e6aa66b911c6b885f43e
>  Author: Ben Pfaff <address@hidden>
>  Date:   Thu Jul 29 22:09:08 2010 -0700
>     make-file: Remove superfluous fflush().
>     Probably introduced during debugging and accidentally left in.
> I seem to remember this was a deliberate decision although the reason
> for it no longer exists.
> Sometimes I click random buttons in the gui to generate a syntax and
> then Execute.
> Occasionally the syntax will cause a seg fault.  If the journal wasn't
> flushed then
> I have no way of reproducing the problem.

The fflush() that I removed was on stdout, and it was in the
middle of a loop in the signal handler that removes temporary
files.  So I don't think that this code was responsible for that.

> Since we made this change however the complete implementation of the
> journal has been replaced.
> But it looks as if the new implementation also suffers this drawback.
> Can we change it so that the journal is flushed to disk each time
> something is written to it?

Ben Pfaff

reply via email to

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