* prof_file.c (profile_flush_file_data): [_WIN32]: Don't call sync
authorKen Raeburn <raeburn@mit.edu>
Fri, 17 Jan 2003 23:19:47 +0000 (23:19 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 17 Jan 2003 23:19:47 +0000 (23:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15126 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/prof_file.c

index afb37338206177133320ca0d3eac918074bf500f..23595650ec666c2b458914e87ee1815ca626a38d 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * prof_file.c (profile_flush_file_data) [_WIN32]: Don't call
+       sync.
+
 2003-01-13  Ken Raeburn  <raeburn@mit.edu>
 
        * prof_int.h (SHARE_TREE_DATA): Define only on Mac.
index a71c44fe43e093b6ad70383ff258230e021e9093..90866b91358e248b65588627a754507de95df039 100644 (file)
@@ -319,7 +319,9 @@ errcode_t profile_flush_file_data(data)
            /* Couldn't make the hard link, so there's going to be a
               small window where data->filespec does not refer to
               either version.  */
+#ifndef _WIN32
            sync();
+#endif
            if (rename(data->filespec, old_file)) {
                retval = errno;
                goto errout;