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

2020-12-01 Thread Michal Kubecek
On Mon, Nov 30, 2020 at 05:30:00PM -0800, Jakub Kicinski wrote: > On Mon, 30 Nov 2020 16:27:47 +0300 Denis Kirjanov wrote: > > in the case of the socket which is bound to an adress ^ address > > there is no sense to create a path in the next attem

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

2020-11-30 Thread Jakub Kicinski
On Mon, 30 Nov 2020 16:27:47 +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 > > here is a program that shows the issue: > > int main() > { > int s; > struct sockaddr_un a; > > s = socket(AF

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

2020-11-30 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");