From 82e8261d30f4bd54a5848e56bbe788836e9c505f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 16 Apr 2004 22:31:40 +0000 Subject: [PATCH] reenable dir fsync --- stepmania/src/RageFileDriverDirect.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stepmania/src/RageFileDriverDirect.cpp b/stepmania/src/RageFileDriverDirect.cpp index c9ec950420..26b7e0e999 100644 --- a/stepmania/src/RageFileDriverDirect.cpp +++ b/stepmania/src/RageFileDriverDirect.cpp @@ -199,8 +199,7 @@ bool RageFileObjDirect::FinalFlush() SetError( strerror(errno) ); return false; } -#if 0 - /* XXX: causing problems for some reason */ + /* Wait for the directory to be flushed. */ int dirfd = open( Dirname(path), O_RDONLY ); if( dirfd == -1 ) @@ -219,7 +218,6 @@ bool RageFileObjDirect::FinalFlush() } close( dirfd ); -#endif return true; }