On Thu, Aug 22, 2019 at 11:40:15AM +0200, Patrick Steinhardt wrote: > Properly flushing standard streams without fclose(3P) proves to be more > intricate than one may expect, though, as some filesystems like NFS may > defer flushing until they see a close(3P) of the underlying descriptor. > One may call fsync(3P) to remedy that, but this may incur a heavy > performance penalty in some scenarios. To work around the issue and > still get proper errors, we duplicate the stream's file descriptor and > close that one instead, which is sufficient to cause a flush. Applied, thanks. We'll see... :-) Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com