Re: file sync
- From: Daniel Barlow <dan@xxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 13:18:19 +0100
Tamas Papp wrote:
Duane Rettig <duane@xxxxxxxxx> writes:Why do you want the equivalent of fsync? It seems rather heavyweight.
I am debugging and application that uses X, and when receiving a bad
request, the application terminates. I am sending debug messages
using (format *stream* "Opening display ~a~%" display), and sometimes
the application dies before the buffer is flushed. (force-output
*stream*) solved the problem well.
At the risk of being charged with sadonecrobestiality[*], I'd be surprised if force-output were calling fsync() there. As Duane said, it's probably just the application-level buffers you need to clear, not the kernel disk io cache. If the application were terminating and immediately causing the whole operating system to crash, that's when you need to worry about it.
-dan
[*] flogging a dead horse
.
- Follow-Ups:
- Re: file sync
- From: Tamas Papp
- Re: file sync
- References:
- file sync
- From: Tamas Papp
- Re: file sync
- From: Duane Rettig
- Re: file sync
- From: Tamas Papp
- file sync
- Prev by Date: Re: Maintaining multivariable state (newbie question)
- Next by Date: Re: Simple question about directories
- Previous by thread: Re: file sync
- Next by thread: Re: file sync
- Index(es):
Relevant Pages
|
|