openbsd-ports/devel/dconf/patches/patch-engine_dconf-engine_c
2011-09-27 06:25:10 +00:00

16 lines
521 B
Plaintext

$OpenBSD: patch-engine_dconf-engine_c,v 1.7 2011/09/27 06:25:10 ajacoutot Exp $
--- engine/dconf-engine.c.orig Sun Sep 11 21:07:26 2011
+++ engine/dconf-engine.c Tue Sep 27 08:11:51 2011
@@ -142,6 +142,11 @@ dconf_engine_refresh_user (DConfEngine *engine)
{
g_assert ((engine->gvdbs[0] == NULL) >= (engine->shm == NULL));
+#ifdef __OpenBSD__
+ if (engine->shm)
+ msync (engine->shm, 1, MS_INVALIDATE);
+#endif
+
/* if we failed the first time, fail forever */
if (engine->shm && *engine->shm == 1)
{