summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut/patches
diff options
context:
space:
mode:
authorfredb <fredb>2002-05-22 18:02:32 +0000
committerfredb <fredb>2002-05-22 18:02:32 +0000
commit923f98c1b0ea5b5cf1d5b87104665a5346d9188c (patch)
treedd46cc79073f2eb16676647fe4266e1f645b706e /sysutils/ups-nut/patches
parent1ad43147edb44d2732c874c2f677ae2a5bf5dab4 (diff)
downloadpkgsrc-923f98c1b0ea5b5cf1d5b87104665a5346d9188c.tar.gz
On NetBSD, the drivers need to call msync() after writing to the memory
mmap()-ed shared with "upsd", so that "upsd" an read it back reliably. This keeps "upsd" from complaining about stale data. Bump PKGREVISION.
Diffstat (limited to 'sysutils/ups-nut/patches')
-rw-r--r--sysutils/ups-nut/patches/patch-aa12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/ups-nut/patches/patch-aa b/sysutils/ups-nut/patches/patch-aa
new file mode 100644
index 00000000000..66fff133194
--- /dev/null
+++ b/sysutils/ups-nut/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.4 2002/05/22 18:02:34 fredb Exp $
+
+--- models/upscommon.c.orig Fri May 17 00:27:55 2002
++++ models/upscommon.c
+@@ -588,6 +588,7 @@
+ }
+
+ memcpy(shared_info, info, info_size);
++ msync(shared_info, info_size, MS_INVALIDATE);
+
+ if (shmid >= 0) {
+ struct shmid_ds shmbuf;