Closed Bug 848020 Opened 8 years ago Closed 8 years ago
Do we really have to poison Nt
Flush Buffers File?
Reading the wine source it really looks like NtFlushBuffersFile is just the windows equivalent of flush. So poisoning it would only be necessary if we were trying to prevent data loss in power failures, not firefox calling exit(0). Am I missing something about NtFlushBuffersFile semantics? Doesn't windows save buffers when a process exits?
I think it does, unless you call TerminateProcess. It might be worth looking into the differences between ExitProcess and TerminateProcess (I think the first one is supposed to flush all I/O buffers.)
OK. It looks like that windows does write the data to disk on exit but not on terminate. While poisoning NtFlushBuffersFile would be an interesting project to protect against data loss in a power loss or firefox being killed, that is out of scope of the exit(0) project.
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Attachment #722242 - Flags: review?(bgirard)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.