io_uring-by-example
io_uring-by-example copied to clipboard
Fix `04_cp_liburing` to track write_left correctly
Hi, 04_cp_liburing quits before writing file content in my environment.
Since I think write_left in copy_file should be updated when actually wrote, I moved the line and it works fine in my environment.
Thanks.
LGTM