diff options
author | Ken Raeburn <raeburn@mit.edu> | 2003-01-17 23:19:47 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2003-01-17 23:19:47 +0000 |
commit | 0888eeec6d670a19fc26eaddb40a49580c6941b4 (patch) | |
tree | 6fba868c7ab7d59a22029a90c6277264a514fa9d | |
parent | 61d2b0f60348ece3adbb30090824ec959d3ce79f (diff) | |
download | krb5-0888eeec6d670a19fc26eaddb40a49580c6941b4.tar.gz krb5-0888eeec6d670a19fc26eaddb40a49580c6941b4.tar.xz krb5-0888eeec6d670a19fc26eaddb40a49580c6941b4.zip |
* 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
-rw-r--r-- | src/util/profile/ChangeLog | 5 | ||||
-rw-r--r-- | src/util/profile/prof_file.c | 2 |
2 files changed, 7 insertions, 0 deletions
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 <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. 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; |