aboutsummaryrefslogtreecommitdiffstats
path: root/makewrappers
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2013-02-26 21:31:18 -0600
committerPeter Seebach <peter.seebach@windriver.com>2013-02-26 21:32:50 -0600
commit0db033145b47dfa76f57316eb9a03b157f3a0631 (patch)
tree0164f69aa0ad7af1fdd0b57709e4eb4c76153b76 /makewrappers
parentbe1131e2ee2178bcc50ba04916fea527059f6aa0 (diff)
downloadpseudo-0db033145b47dfa76f57316eb9a03b157f3a0631.tar.gz
pseudo-0db033145b47dfa76f57316eb9a03b157f3a0631.tar.bz2
pseudo-0db033145b47dfa76f57316eb9a03b157f3a0631.zip
PSEUDO_ALLOW_FSYNC: Allow fsync()pseudo-1.5PSEUDO_1_5
Some filesystems have buggy semantics where stat(2) will return incorrect sizes for files for a while after some changes, sometimes, unless they've been fsync'd. We still want to disable fsync most of the time, but enabling it for specific programs can be useful. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'makewrappers')
-rwxr-xr-xmakewrappers3
1 files changed, 2 insertions, 1 deletions
diff --git a/makewrappers b/makewrappers
index 8af65f1..e87cc56 100755
--- a/makewrappers
+++ b/makewrappers
@@ -305,7 +305,8 @@ class Function:
if self.async_skip:
return """/* This function is not called if pseudo is configured --enable-force-async */
#ifdef PSEUDO_FORCE_ASYNC
- return %s;
+ if (!pseudo_allow_fsync)
+ return %s;
#endif
""" % self.async_skip
else: