summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ups-nut/patches/patch-aa')
-rw-r--r--sysutils/ups-nut/patches/patch-aa11
1 files changed, 6 insertions, 5 deletions
diff --git a/sysutils/ups-nut/patches/patch-aa b/sysutils/ups-nut/patches/patch-aa
index 8962838e8ae..dd24b5eef01 100644
--- a/sysutils/ups-nut/patches/patch-aa
+++ b/sysutils/ups-nut/patches/patch-aa
@@ -1,15 +1,16 @@
-$NetBSD: patch-aa,v 1.5.2.2 2002/06/23 19:01:12 jlam Exp $
+$NetBSD: patch-aa,v 1.5.2.3 2002/08/25 21:21:31 jlam Exp $
---- models/upscommon.c.orig Fri Mar 15 00:59:57 2002
+--- models/upscommon.c.orig Fri May 17 15:27:55 2002
+++ models/upscommon.c
-@@ -716,6 +716,10 @@
- return;
- }
+@@ -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)