Will Miles
|
Re: bind() with abtract unix socket
|
Will Miles
03/25/2020 9:40 AM
post120400
|
Re: bind() with abtract unix socket
Hi Lauri,
The "abstract socket namespace" is a non-portable Linux extension. It's not supported on any other operating system,
including QNX. You'll need to find another approach to prevent multiple execution; I believe the common standard is to
use a lockfile of some form.
Ref: http://man7.org/linux/man-pages/man7/unix.7.html
Hope this helps some,
-Will
|
|
|
Ronald Yu
|
Re: bind() with abtract unix socket
|
Ronald Yu
03/27/2020 1:38 PM
post120414
|
Re: bind() with abtract unix socket
I was working on some other part of io-pkt, and did a quick check on it.
It seems like a bug. For abstract socket, it goes straight to node creation without having existence check.
So you'd end up with having the same abstract name being registered multiple times. When this happens, the new one will
overlay the others.
I don't know if there's reasons for that, I'd double check with io-pkt team.
|
|
|