Page MenuHomeFreeBSD

Fix getsockopt() timeout.
ClosedPublic

Authored by davide on Jul 17 2014, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 8:05 AM
Unknown Object (File)
Oct 18 2024, 1:22 AM
Unknown Object (File)
Oct 18 2024, 1:22 AM
Unknown Object (File)
Oct 18 2024, 12:58 AM
Unknown Object (File)
Oct 17 2024, 7:40 PM
Unknown Object (File)
Oct 5 2024, 2:04 PM
Unknown Object (File)
Oct 5 2024, 10:58 AM
Unknown Object (File)
Oct 3 2024, 5:11 PM
Subscribers
None

Details

Reviewers
davide
jhb
adrian

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

davide retitled this revision from to Fix getsockopt() timeout..
davide updated this object.
davide edited the test plan for this revision. (Show Details)
sys/kern/uipc_socket.c
2550

This is to restore the behavior of r255030? This does do that, but it's not quite obvious. You could also do something like:

if (tv.tv_sec > INT32_MAX)
    val = SBT_MAX;
else
    val = tvtosbt(tv);

I think that might be clearer (and more closely match the prior behavior)

This revision is now accepted and ready to land.Aug 20 2014, 3:37 PM