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

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 17:22:08 +0300 Denis Kirjanov wrote: > On 11/26/20, Jakub Kicinski wrote: > > On Tue, 24 Nov 2020 15:24:21 +0300 Denis Kirjanov wrote: > >> in the case of the socket which is bound to an adress > >> there is no sense to create a path in the next attempts > > > >> diff --g

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

2020-11-26 Thread Denis Kirjanov
On 11/26/20, Jakub Kicinski wrote: > On Tue, 24 Nov 2020 15:24:21 +0300 Denis Kirjanov wrote: >> in the case of the socket which is 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..fd76a8f

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

2020-11-25 Thread Jakub Kicinski
On Tue, 24 Nov 2020 15:24:21 +0300 Denis Kirjanov wrote: > in the case of the socket which is 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..fd76a8fe3907 100644 > --- a/net/unix/af_unix.c > +

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

2020-11-24 Thread Denis Kirjanov
in the case of the socket which is 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");