-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: fd passing fails on OpenBSD #3349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
After looking into this issue, I found out that it is apparently due to the getsockname implementation on OpenBSD. While the manpage states that obtaining the address is not supported for Unix sockets, the address family doesn't seem to be set either if the socket is not bound (see the attached example). This means that net.FileConn doesn't recognize it as a Unix socket. Attachments:
|
@guelfey: That bug was fixed last October (http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/uipc_usrreq.c#rev1.69), and will be included in the upcoming 5.3 release. If I run your test program on a recent snapshot release, the output is "got 1 expected 1". |
This issue was closed by revision f853e9a. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
The text was updated successfully, but these errors were encountered: