Re: [gtk-list] Problem: Truncated output files after crash
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Problem: Truncated output files after crash
- Date: Mon, 22 Mar 1999 11:53:49 -0500 (EST)
On Mon, 22 Mar 1999 Robert_Gasch/PeopleSoft@peoplesoft.com wrote:
>
> In my code I write the data and then do a
> fflush (file_ptr);
> fclose (file_ptr);
>
> however adding the fflush() call doesn't change a thing; files are
> still truncated after a crash. If the program exits properly (ie: without
> a core dump), the files are written to disk as they should; otherwise
> they are truncated.
>
Do you check the return value from fflush() and fclose()? Just a
wild guess though.
:-)
> Does anybody have a suggestion as to what I'm doing wrong (other
> than the obvious one that I should fix my core dumps).
>
You should really ask on comp.unix.programming or the like, it's not a Gtk
question.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]