Re: [PATCH v4] net/af_unix: don't create a path for a bound socket

2020-12-03 Thread Jakub Kicinski
On Thu, 3 Dec 2020 11:18:44 +0300 Denis Kirjanov wrote: > in the case of a socket which is already bound to an adress > there is no sense to create a path in the next attempts > diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c > index 41c3303c3357..489d49a1739c 100644 > --- a/net/unix/af_unix

[PATCH v4] net/af_unix: don't create a path for a bound socket

2020-12-03 Thread Denis Kirjanov
in the case of a socket which is already bound to an adress there is no sense to create a path in the next attempts here is a program that shows the issue: int main() { int s; struct sockaddr_un a; s = socket(AF_UNIX, SOCK_STREAM, 0); if (s<0) perror("socket() failed\n");