Page MenuHomeFreeBSD

sockets: assert that any protocol with PR_RIGHTS has dom_dispose()
ClosedPublic

Authored by glebius on Wed, May 4, 6:44 PM.

Details

Summary

Through the entire history only PF_UNIX has this feature.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markj added a subscriber: markj.

I wouldn't bother with the assertions. If the pointer is null and we crash it'll be obvious why.

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

Just old memories of panic on "call NULL" looking unobvious what exactly happened. Probably no longer true for modern kernel.