Files
mirror_zfs/tests/zfs-tests/cmd
Antonio Russo a7304ab9c1 ZTS: close in mmapwrite.c
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.  ee6bf97c7 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 close()-ing the file at
the end of the thread.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes #14353
2023-01-06 10:52:08 -08:00
..
2022-10-28 09:49:20 -07:00
2022-09-27 16:47:24 -07:00
2022-09-29 08:56:42 -07:00
2022-04-01 17:58:23 -07:00
2022-09-29 08:56:42 -07:00
2022-10-28 09:49:20 -07:00
2022-06-29 14:08:54 -07:00
2022-09-27 16:47:24 -07:00
2023-01-06 10:52:08 -08:00
2022-09-29 08:56:42 -07:00
2022-10-28 09:49:20 -07:00
2022-09-29 08:56:42 -07:00