www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/06/05/14:13:10

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:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=ui6FIidEl2NQeC3dvR7TTWkx3UZXcudTYKCUCUIzjCBNMZkfSNk1f
uVPs9PFKhY6iqY2kx0X3LeYhRSNCZlQfYSi6ssqN9j9xESpISKdKSk+/UHdRHkQC
is5U4k5kOf1M1w8E3WVAzH3H3TK2ZzF57DeIhCJGl1wRl3jvCq47J0=
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:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=xpgyBKLxbLt7+EN5oH98hFRVXM0=; b=UlTPvpRPMV0dyfZCX6gZ32QGwrIv
0mtarF6A4oPz/Ww8+Z3DXtcBUCWJ7ncG8wfJWF9zRiLC1F5aJUGZYPABSi+mT9PK
VKwEhI6dX+oy2LICbeUPDFWmVq/q7bVc8cWNqVmjyMyJKd4lZmO6z1fUp6sqWTNW
oeVmx1LhonTAxSU=
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-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-102.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy==c3=adk, Sko=c4, petr, Petr?=
X-HELO: mout.kundenserver.de
Date: Wed, 5 Jun 2019 20:12:18 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Petr =?utf-8?B?U2tvxI3DrWs=?= <pskocik AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: bind() behavior inconsistency with Linux and MacOS
Message-ID: <20190605181218.GY3437@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Petr =?utf-8?B?U2tvxI3DrWs=?= <pskocik AT gmail DOT com>, cygwin AT cygwin DOT com
References: <846c1e23-0d60-2375-2968-e1aa7d5896c9 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <846c1e23-0d60-2375-2968-e1aa7d5896c9@gmail.com>
User-Agent: Mutt/1.11.3 (2019-02-01)

--FoibaoN3dya3u5fy
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jun  5 15:06, Petr Sko=C4=8D=C3=ADk wrote:
> Hi.
>=20
> I don't know if this is technically a bug, but I've noticed that unlike
> on Linux or MacOS, I a cannot bind a unix domain socket in a child
> process and then listen on it in the parent.
>=20
> The bind succeeds but `listen()` in the parent then fails with EINVAL.
>=20
> (The reason I'd like to `bind` in a different process is so I could
> `chdir` to a different directory before `bind`ing and then conceptually
> back without having the `chdir` break file operations in different thread=
s.)
>=20
> Just wanted to let you guys know in case there was an easy fix.

There isn't.  The file information is not shared back into the parent
in the current state of file handling and the state info is important
in the AF_UNIX implementation.  That may change at one point, but that
requires that I get more time to hack on my new AF_UNIX code, which
looks pretty unlikely at the moment.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--FoibaoN3dya3u5fy
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlz4BgIACgkQ9TYGna5E
T6AqyQ/+MJyJcvJCsz8xsUYT4F6PaoI5gwjUIWchS145qkottZqfqwAzxp1pFWjq
D9zbi2ezCJiMd6yOrM6C76xsrFM16ktKq2VHqTmR40242AlCpNypiRg0SIskqUwr
AtBLOPO8qoIb82bovjwi7Jo+O3JH3Q82Ir7atjDd8/+ga2sop8MAmCy1S/uXWuW1
SgBx3YMB8xJi3Z1B1K9m5CJGuBiOIu8hTMm/Eziq5olseHV7ARubSjo1aCiyxbA6
kdjzKyhmOPk+IV7ayNxiVIDJ0ESA5Qbgdqj/FM6uP9IpdlZZvcKfNqmKX4ekT1Q0
1R/RyswtksiPOMPMLZLlilvcC9QQND0lAf5nSZU6YgI1Ma0vsyQcaPIlttlc51Fx
QrgXh6sn6L3TAXOflH5wiqG05nFMnIJqOG2s2IwPO6GgK0vDIt48hRa9VN3MFKS9
TWnIoUPngw3EbrH66DBchz9YrrCBhoTrrpMuVHPBYH/hFOBcup1pGvULutr2XWz/
9T2JRUin9gUkL9wPV259NHqZHu8xbycB1SKkCfmo5A0RBp82KkKlg8zJ5UhHHvR3
vWVqb3b1O0guOCxb0Rh2UrurcwdURSLELqQOLO2srxTrTHTQ2eJzUXS2oHU9VWSB
fhJeT5aJmn011sOjzYTyrbJU19LmSlwg8jLGoxj1/QoEjoYADjI=
=LiC7
-----END PGP SIGNATURE-----

--FoibaoN3dya3u5fy--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019