X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=w0tqtMW 6Fl1sIruMYMvGgwClk6anaa2xxSN+JLaTPBzozmkk+ARPujIELgs5j9Eq0a9WBxA OBuPWOyIoIf4HYwrU+I5qDNiLH9kEYgEYpBLpcfpw8xSDEjvJ5QJj5Ht2I6+BSjR H/Ch0TOTyEdT3fEuL+roVdowrJqfbTR3x7YA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=S1HY5H6t3Z8CL 0vCHG8rJh4I8VQ=; b=C69EuxPEmM0CJ3Ijir88t4Ujev8VEQpE5PYMf7gkmMuSN u2Mh2Z5wjfNXZ+ZkQyWOyF/X161Qnw6vIf5WSYCELz/qFzDwyhN8yyr8eRDmnQPx +4YbH3r8m8pxd2QGIscQ4eEAZBFKZ//E1oQffE39RfrQL7Ij8xk3/ZKmJdumVM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=crazy, Especially, af_unix, AF_UNIX X-HELO: mail-oi0-f50.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8psrUgm11/bw1tHtkwRImadm+LR3u8/KERy5NSiyg5E=; b=SzBQvWus0BDXItoZYWUt6544maocPxqKl+YRIugXeUqCJ0YjmV9GiutReigowqnp5x Izv/fOGz3ePqi06NOUNEB/jkvu5RhhXqhPd9DMvxM6ZpL4MFunTLrGo6YyQYM29nk1jL iZ0kI4NJaSZN5QS/z79zJyxOpZEcgNFGP+ytfD/+zpx6xmq8ZoXH2o5qgmt8JeVJNjyf UZFdpeynZ7ue6rAu0pyzQcT1yaJ2nibiy+qXcdg1MqXLneZ6DJSpHvQQEEml1PUchDQP NpHsK/30RRFKG+QZ4TJEeIZf3ZZJgVpFqNHVWyupQ2ID5TwtvRb6CeE4r9iBblA68U3Y 6VKg== X-Gm-Message-State: AIkVDXKO7oOrb3ZUWy+cdpZTdD/Rs0H+NLXPr2ZFxPNcETwyQNQlec5JssQuWVUwU/4KYgteiZ3dUMDc7bTNlQ== X-Received: by 10.202.175.10 with SMTP id y10mr8663686oie.188.1484268845143; Thu, 12 Jan 2017 16:54:05 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20170112221323.GE23119@calimero.vinschen.de> References: <CAOTD34aMu6DLP-8kaRXZRoihGxW9Jusf1pDBeM3cTWeNRfLVWw AT mail DOT gmail DOT com> <20170109141306 DOT GB843 AT calimero DOT vinschen DOT de> <CAOTD34b-h4WyYiUtA8sizN6riPe1YsDWdaypDNbODC71xv13UQ AT mail DOT gmail DOT com> <20170109171635 DOT GB26337 AT calimero DOT vinschen DOT de> <CAOTD34YeJJc_YXnWBq0HJou5Ka5Cj+qTRd+BgUti0hdzSX=8zg AT mail DOT gmail DOT com> <20170112221323 DOT GE23119 AT calimero DOT vinschen DOT de> From: Michael Enright <mike AT kmcardiff DOT com> Date: Thu, 12 Jan 2017 16:54:04 -0800 Message-ID: <CAOC2fq9Q24wyBqCqx15oejCiOK88P41vgbZ5Rm0ZUZcxNzwVsg@mail.gmail.com> Subject: Re: Hangs on connect to UNIX socket being listened on in the same process (was: Cygwin hanging in pselect) To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Thu, Jan 12, 2017 at 2:13 PM, Corinna Vinschen <corinna-cygwin AT cygwin DOT 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