Page MenuHomeFreeBSD

sysctl: don't loop when EAGAIN is returned
AcceptedPublic

Authored by tuexen on Wed, Oct 7, 3:13 PM.

Details

Reviewers
phk
kib
glebius
Summary

When userland_sysctl() experiences EAGAIN, don't loop internally but leave retrying to the caller.

Looping was a problem in case of using tcpsso(8) to switch a TCP stack where the acceptance check of the new TCP stack results in EAGAIN.

MFC to: stable/15

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

tuexen requested review of this revision.Wed, Oct 7, 3:13 PM

Please include in the commit log references to the original phk's commit hashes and maybe our discussion in D60281.

At least state that this change is direct revert of 7a69d9230f834f562d2c5c36c837e67eacdf5ab3 from 1996.

This revision is now accepted and ready to land.Wed, Oct 7, 4:51 PM