News for hackers. Stuff that matters.
Re:File Descriptor Transfer over Unix Domain Sockets by geocar on Monday November 02, 2020 @02:55AM (#24965602)
If you can do that, maybe you can just use SO_REUSEPORT and arrange for SIGTERM to close the listening socket before going into the drain phase.
Re:File Descriptor Transfer over Unix Domain Sockets by WJW on Monday November 02, 2020 @09:48AM (#24968661)
SO_REUSEPORT has only been supported since about 2013 though, the trick with passing the fd over a Unix socket has worked for way longer than that.
Re:File Descriptor Transfer over Unix Domain Sockets by anonymoushn on Monday November 02, 2020 @04:55AM (#24966306)
That does seem like it would have worked and been easier.