From: Ken Raeburn Date: Fri, 17 Jan 2003 23:19:47 +0000 (+0000) Subject: * prof_file.c (profile_flush_file_data): [_WIN32]: Don't call sync X-Git-Tag: krb5-1.3-alpha1~151 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0888eeec6d670a19fc26eaddb40a49580c6941b4;p=krb5.git * prof_file.c (profile_flush_file_data): [_WIN32]: Don't call sync git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15126 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index afb373382..23595650e 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,8 @@ +2003-01-17 Ken Raeburn + + * prof_file.c (profile_flush_file_data) [_WIN32]: Don't call + sync. + 2003-01-13 Ken Raeburn * prof_int.h (SHARE_TREE_DATA): Define only on Mac. diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index a71c44fe4..90866b913 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -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;