Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect)
Michael Enright
mike@kmcardiff.com
Fri Jan 13 00:54:00 GMT 2017
On Thu, Jan 12, 2017 at 2:13 PM, Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
> Step 3:
>
> If we did it really intelligent, maybe we finally also have a method
> to implement descriptor passing. Finally. After all these years.
>
> And maybe, we should not actually use the socket itself to exchange
> the information but rather create some kind of side-channle for that.
>
> Especially in terms of step 3, I'm mulling over this for years now
> and always something else got in the way and had to be done first.
>
>
I made a program that needed to pass windows HANDLEs between processes
and so that receiving process could access the shared memory
represented by the HANDLEs. I was emulating facilities many programs
implement using send_msg, but I was using Windows (named?) pipes. It
felt a lot like what you need for send_msg, and it required newer
Windows APIs. So by doing the crazy thing of completely rewriting your
AF_UNIX sockets you could "easily" add descriptor passing.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list