From 85e13c0360b95ca59028b8bac07e512dc29b04fe Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 14 Jan 2004 08:13:08 +0000 Subject: [PATCH] add checkpoints to track obscure crash --- stepmania/src/RageFileDriverDirect.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index 483a3d1f1e..a4c52fd0ad 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -377,15 +377,19 @@ int RageFileObjDirect::Flush() if( !write_buf.size() ) return 0; + CHECKPOINT; int ret = retried_write( fd, write_buf.data(), write_buf.size() ); + CHECKPOINT; if( ret == -1 ) { LOG->Warn("Error writing %s: %s", this->path.c_str(), strerror(errno) ); SetError( strerror(errno) ); } + CHECKPOINT; write_buf.erase(); write_buf.reserve( BUFSIZE ); + CHECKPOINT; return ret; }