$OpenBSD: patch-src_polkitagent_polkitagenthelperprivate_c,v 1.2 2011/04/28 13:09:07 ajacoutot Exp $
--- src/polkitagent/polkitagenthelperprivate.c.orig	Wed Apr 27 16:58:05 2011
+++ src/polkitagent/polkitagenthelperprivate.c	Wed Apr 27 16:58:18 2011
@@ -103,7 +103,7 @@ flush_and_wait ()
 {
   fflush (stdout);
   fflush (stderr);
-  fdatasync (fileno(stdout));
-  fdatasync (fileno(stderr));
+  fsync (fileno(stdout));
+  fsync (fileno(stderr));
   usleep (100 * 1000);
 }
