From 95f2547bbd705cd41e9026672bb71f866967da7b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 25 Jan 2018 18:33:46 +0200 Subject: Add comments about earlier fix for BSD systems. --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 79782a81..2860d246 100644 --- a/main.c +++ b/main.c @@ -247,6 +247,9 @@ main(int argc, char **argv) locale_dir = cp; #if defined(F_GETFL) && defined(O_APPEND) + // 1/2018: This is needed on modern BSD systems so that the + // inplace tests pass. I think it's a bug in those kernels + // but let's just work around it anyway. int flags = fcntl(fileno(stderr), F_GETFL, NULL); if (flags >= 0 && (flags & O_APPEND) == 0) { flags |= O_APPEND; -- cgit v1.2.3