Skip to content
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

half close on AF_UNIX #546

Closed
therealkenc opened this issue Jun 17, 2016 · 3 comments
Closed

half close on AF_UNIX #546

therealkenc opened this issue Jun 17, 2016 · 3 comments

Comments

@therealkenc
Copy link
Collaborator

Hit this in some chrome source. Test case below. Probably a known issue but I couldn't find a bug entry. Posted in case you are doing work on unix sockets for #514 anyway.

#include <sys/socket.h>

main()
{
  int fds[2];
  socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds);
  int socket_ = fds[0];
  shutdown(socket_, SHUT_RD);  // returns EINVAL in WSL 14366
}

@benhillis benhillis added the bug label Jun 17, 2016
@benhillis
Copy link
Member

I took a look at the code and currently shutdown is only implemented for unix stream sockets (not sequence packets).

@russalex
Copy link
Contributor

Looks much better on 14915.

@therealkenc
Copy link
Collaborator Author

This was duped up to #758.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants