blob: b06f339e18ccb5eaa41b71e274c0abb9a6f156e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-aa,v 1.6 2002/07/03 11:57:13 lukem Exp $
--- models/upscommon.c.orig Fri May 17 15:27:55 2002
+++ models/upscommon.c
@@ -688,6 +688,11 @@ void info_ready(void)
{
int ret;
+#ifdef HAVE_MMAP
+ /* sync external file representation before operating on the file */
+ msync(shared_info, info_size, MS_INVALIDATE);
+#endif
+
ret = rename(initfn, statefn);
if (ret != 0)
|