[master] 8a2fdce Only msync() on OS's without coherent buf/vm (aka: OpenBSD)
Poul-Henning Kamp
phk at varnish-cache.org
Mon Feb 4 12:30:29 CET 2013
commit 8a2fdce41f76c161a130c722d63cbdafddf6337c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Feb 4 11:30:03 2013 +0000
Only msync() on OS's without coherent buf/vm (aka: OpenBSD)
Fixes #1198
diff --git a/bin/varnishd/mgt/mgt_shmem.c b/bin/varnishd/mgt/mgt_shmem.c
index bc59194..7707309 100644
--- a/bin/varnishd/mgt/mgt_shmem.c
+++ b/bin/varnishd/mgt/mgt_shmem.c
@@ -247,8 +247,10 @@ mgt_SHM_Create(void)
exit (-1);
}
+#ifdef OpenBSD
/* Commit changes, for OS's without coherent VM/buf */
AZ(msync(p, getpagesize(), MS_SYNC));
+#endif
}
/*--------------------------------------------------------------------
More information about the varnish-commit
mailing list