delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/28/21:30:56

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:references:in-reply-to:from:date
:message-id:subject:to:cc:content-type; q=dns; s=default; b=g5oj
3RXJRt9hyyq9HiDEKnnWOPOrkUTzlbqE4zJIqAbT0ahzQndwsR0KTGzaUn0uJthm
YBMjKYtCU+kfc6UsODeYNmG/LRdv9otiiTY7QM7PZ9NEF10+q66ANdaz44ol8TVn
9daLBoqM3bA1UYS1WET50iASzgxuJwUg0RScJc0=
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:references:in-reply-to:from:date
:message-id:subject:to:cc:content-type; s=default; bh=6h62INC/th
y33A6cNxKNZyB2Xyo=; b=oKk2ei4Q3QWfIXiYhPdV7IBRQ+jayviX2wb2Vk7DME
nat8yaI2xN3Lzn3XOUl8BW+9NqtHx8uwkClabOPY1MgMA6AT+X3NgPBM4lExedRi
LclA6zkMKbLWqN8E/t5jgUGxsUJ2sSYalvpOFlLTO7ML8mWJ+EENqpLK9Udqm4Dn
w=
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: No, score=-0.2 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=race, HX-Spam-Relays-External:sk:mail-ed, H*RU:sk:mail-ed, HX-HELO:sk:mail-ed
X-HELO: mail-ed1-f44.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wqu8hM4eyHzcKoYhspR/R7ouaYdC/CmR0xifI77QPKE=; b=WuA2InRITcQx2jY7Au7nHTOc53bK1IjymMHwjyxOmyaNK5kr5QlJlqYuef6wIlNBjY MU8emp//iVUnJaQup0H16chbs+8vIG9bzjD0hxulGVj97OjmGA3R2SHZEIftLoPNe0lm rs8zN9+skG5N3fIF+CmMfp5XWECRi0V1eTtl5FxJoWSLLTzg0L80MpgM8o+SBt7v0JvF VJwUaTSqU8BXQgvRlozFoauWxDsjE3kK4jjZPpBcXgOF/4LYo1LCbY6+OV3gVF63gtQw vINXAUUpzmJ0/4+iaF0lrOJ3QSzO582vRR184lQ7Lo5Wx4TrvrQ/8bRazH3tFT9r07Is Jm6g==
MIME-Version: 1.0
References: <CAA5t8VpepGY+ZitXTe1fQp6vDe4dqDaM+0Kp1LGWZQTERuJ7Nw AT mail DOT gmail DOT com> <629feb60-a3b2-6368-8eb5-83def841130b AT cornell DOT edu>
In-Reply-To: <629feb60-a3b2-6368-8eb5-83def841130b@cornell.edu>
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Sun, 28 Jul 2019 18:29:45 -0700
Message-ID: <CAA5t8Vq-xVvEgfWt+QYea=x5-rvrLs_jMNdAqUOp6eXC=U+PPA@mail.gmail.com>
Subject: Re: Piping input from subprocess loses track of temp file
To: Ken Brown <kbrown AT cornell DOT edu>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Sat, Jul 27, 2019 at 8:40 AM Ken Brown wrote:

> On 7/19/2019 2:27 PM, David Karr wrote:
> > I believe the relevant part of my cygwin version info is
> "3.0.7(0.338/5/3)"
> > (from uname -a output).
> >
> > I'm working on a script where one step executes a process where the input
> > is taking from a subprocess, like this:
> >
> >      someprocess <(cat $outfile | sed -e "s/${property}[
> > ]*=.*$/${property}=${newValue}/")  ...
> >
> > When I run this, I see:
> >
> >      error: error reading /dev/fd/62: The system cannot find the path
> > specified.
>
> I just ran into a possibly similar problem:
>
>    https://cygwin.com/ml/cygwin/2019-07/msg00230.html,
>
> although in my case I could only reproduce it under X11.  Are you running
> under
> X11 when you see your problem?  And can you boil it down to a simple test
> case
> or, barring that, send your script and reproduction instructions?
>
> Ken
>

Well, what's curious is that I thought I was running under X11, but now I
see that I'm not running the server.

What's even stranger is that this isn't happening anymore, or at least it's
not happening today.  I guess that means there's some sort of race
condition in play here, which is really annoying.

I'm even running the exact same command line that I was running before
(that is, passing the same parameters to the script that calls the process
that had this problem).

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

- Raw text -


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