diff options
author | Toby DiPasquale <toby@cbcg.net> | 2020-11-25 02:47:27 -0500 |
---|---|---|
committer | Toby DiPasquale <toby@cbcg.net> | 2020-11-27 21:49:41 -0500 |
commit | aef3068c1d688cab8b5fbbd51534fd4d5c4ead53 (patch) | |
tree | 85a95f049b93d956149f1f615740dd1ff2846d9e /test/sys/test_termios.rs | |
parent | 1794a471483800e0a6be0a7aac1165e916b16797 (diff) | |
download | nix-aef3068c1d688cab8b5fbbd51534fd4d5c4ead53.zip |
Fix recvmmsg(2) implementation
There were two problems discovered with the `recvmmsg(2)` implementation
that this changeset attempts to fix:
1. As mentioned in nix-rust/issues/1325, `recvmmsg(2)` can return fewer
messages than requested, and
2. Passing the return value of `recvmmsg(2)` as the number of bytes in
the messages received is incorrect.
This changeset incorporates the proposed fix from nix-rust/issues/1325,
as well as passing the correct value (`mmsghdr.msg_len`) for the number
of bytes in a given message.
Diffstat (limited to 'test/sys/test_termios.rs')
0 files changed, 0 insertions, 0 deletions