[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

PrzemeK report at bugs.python.org
Tue Nov 3 06:23:44 EST 2015


PrzemeK added the comment:

Errata - 1st paragraph should be:

The code that does not work (python3 example):
...
sock_path = b"/var/tmp/sock.tmp"
server.bind(b"\0" + sock_path)
...
and strace shows:
bind(3, {sa_family=AF_LOCAL, sun_path=@"/var/tmp/sock.tmp"...}, 20) = 0

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25541>
_______________________________________


More information about the Python-bugs-list mailing list