Skip to content

Commit

Permalink
Add note for ignoring the return value of write to disk (esnet#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
swlars authored Mar 30, 2022
1 parent 2a187a9 commit ad05aac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -4431,6 +4431,7 @@ diskfile_recv(struct iperf_stream *sp)

r = sp->rcv2(sp);
if (r > 0) {
// NOTE: Currently ignoring the return value of writing to disk
(void) (write(sp->diskfile_fd, sp->buffer, r) + 1);
}
return r;
Expand Down

0 comments on commit ad05aac

Please sign in to comment.