This is the fundamental design flaw of Windows and they think it's a feature...https://twitter.com/jsnover/status/976904887370788865 …
This is completely untrue. Just unlink it as soon as you create it and pass the fd around.
-
-
OK, but then how do you clean up the UNIX-domain socket used for FD passing? Exact same problem.
-
If it's sharing among related processes, you just inherit the fd. No need to pass over socket. If client-server, server owns listening socket name.
-
Whenever you have named/addressable resources someone has to be responsible for ownership & lifetime of name.
-
UNIX needs a flag to open, bind and shm_open that says, delete link if the last handle that was opened through that link is closed.
-
TCP sockets work this way, so why can't UNIX optionally also?
-
This has inherent race condition flaws.
-
People actually spend effort working around them in network code.
-
And people like me spend effort writing code to clean up after a process crashes.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.