aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-03 00:56:17 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-03 00:56:17 -0400
commit7c92fad8b8e613ada5b4ce951829ed420a4aaac7 (patch)
tree2ee57a04f98fbef5e7ac8ea8cff7a5cea8bec118 /libsbutil
parentsandbox: fix passing of config env vars down (diff)
downloadsandbox-7c92fad8b8e613ada5b4ce951829ed420a4aaac7.tar.gz
sandbox-7c92fad8b8e613ada5b4ce951829ed420a4aaac7.tar.bz2
sandbox-7c92fad8b8e613ada5b4ce951829ed420a4aaac7.zip
libsbutil: drop fsync when logging
This was added as part of running multiple tracers in parallel in the hopes (hack) it would make logs less intermingled. Unfortunately, it didn't really accomplish that, and it upsets `file` when verbose output is enabled due to file's own seccomp filter (which doesn't have fsync). We could add this to file's seccomp filter (since it's a pretty benign syscall), but easier to just drop it at this point since it's not all that useful. Bug: https://bugs.gentoo.org/821403 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil')
-rw-r--r--libsbutil/sb_efuncs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libsbutil/sb_efuncs.c b/libsbutil/sb_efuncs.c
index 1283784..7ded90d 100644
--- a/libsbutil/sb_efuncs.c
+++ b/libsbutil/sb_efuncs.c
@@ -52,7 +52,6 @@ static void sb_vefunc(const char *prog, const char *color, const char *format, v
sb_fdprintf(fd, " %s*%s ", color, COLOR_NORMAL);
sb_vfdprintf(fd, format, args);
- fsync(fd);
if (opened)
close(fd);
}