diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-01-25 18:33:46 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-01-25 18:33:46 +0200 |
commit | 95f2547bbd705cd41e9026672bb71f866967da7b (patch) | |
tree | 714d80491f4a750062f1262645a9c9d6aa448999 | |
parent | 15fdfc77601e1dbd79ae972bea3ef99e360692f3 (diff) | |
download | egawk-95f2547bbd705cd41e9026672bb71f866967da7b.tar.gz egawk-95f2547bbd705cd41e9026672bb71f866967da7b.tar.bz2 egawk-95f2547bbd705cd41e9026672bb71f866967da7b.zip |
Add comments about earlier fix for BSD systems.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | main.c | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2018-01-25 Arnold D. Robbins <arnold@skeeve.com> + + * main.c (main): Add explanatory comment about O_APPEND stuff. + 2018-01-22 Arnold D. Robbins <arnold@skeeve.com> Fix the inplace tests on *BSD systems. @@ -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; |