Flushing administrative output
There ought to be a
fflush(fp); at source:gdplogd/logd_admin.c#L229
This ensures that all the data from a single call to
admin_post_statsv(...) is flushed in a timely manner.
#1 Updated by Eric Allman about 6 years ago
- Due date set to 07/15/2016
I guess I had assumed that this was line buffered, but that was a bad assumption. Another point: it should also lock the fd to avoid intermixed output if two threads are posting info at the same time. I'll try to get this done tomorrow at the airport, or latest by Friday.