X-Recipient: archive-cygwin@delorie.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:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=IYDo3YrTWvWKTnk8FEHLyMXJlzn8WZvzW+HeNdObsF6
	JAPEKWpcC33nCg4i5tiOGP/qUBpeii2S2eSzI0tfBFJIAWvIlKhOxiMGJAHWdp/6
	8SKVrbskzq1Cm08LFKzfMKEKaWIN+rLcc+5ejWimUSPOBvfWhZXntvphonyRb6jQ
	=
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:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=vnNXYK0WVxCaBlDivkeNW3aJp3c=; b=rvPzXGOwdsUpWWHu6
	xqDv6/ycPxhJmgfCqK3jbNuCf0Qi6wd2A1UomZ+9E2CGX6GP7K0SMf4yi7ttVfHX
	g00FUDT/H2dS54xmBMLWGHjPiWob4P3mu0iUszs7CVTMCsTsh8eX9sq4iwk3W5Cm
	7I5ojw38GeV2KYDw794KNmLPsY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=posix-like, emulates*, posixish, getcwd
X-HELO: vsmx012.vodafonemail.xion.oxcs.net
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: deleted current directory behaviour
References: <20180116041301.trp2qwc2qexos7kp@mars.tony.develop-help.com>
Date: Thu, 18 Jan 2018 19:19:12 +0100
In-Reply-To: <20180116041301.trp2qwc2qexos7kp@mars.tony.develop-help.com>	(Tony Cook's message of "Tue, 16 Jan 2018 15:13:02 +1100")
Message-ID: <87wp0fxc67.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-VADE-STATUS: LEGIT
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w0IIJcHm024874

Tony Cook writes:
> Currently cygwin emulates* Linux (and most other POSIXish systems that
> I'm aware of) by allowing the current directory to be removed:
[…]
> Is that inconsistency with other platforms intentional?

It's one of those non-POSIXy things that can be detected if you look
closely enough.  The directory must still exist since Windows considers
it an open file, it only really gets deleted when the process exits.

> If it isn't, are there any plans to make it consistent with
> Linux/other POSIX-like systems?

I don't know if that's even possible (i.e. whether you can make getcwd()
return a different string than the now deleted but still existing cwd of
the process).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

--
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


