Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmapwrite is used during the ZTS to identify issues with mmap-ed files. This helper program exercises this pathway by continuously writing to a file. ee6bf97 modified the writing threads to terminate after a set amount of total data is written. This change allows standard program execution to reach the end of a writer thread without closing the file descriptor, introducing a resource "leak." This patch appeases resource leak analyses by fclose()-ing the file at the end of the thread. It also cleans up some error handling. Signed-off-by: Antonio Russo <aerusso@aerusso.net>
- Loading branch information