This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 6ac7cbf4d263e8bf6fa39eb0e070b0bbb47fe3a0 Author: wangjianyu3 <[email protected]> AuthorDate: Tue Jan 2 17:02:30 2024 +0800 system/fastboot: fastboot flash - call fsync() Signed-off-by: wangjianyu3 <[email protected]> --- system/fastboot/fastboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index f216e07a5..1d29a9def 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -237,6 +237,7 @@ static void fastboot_flash_close(int fd) { if (fd >= 0) { + fsync(fd); close(fd); } }
