delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/24/14:47:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_CG,TW_MK,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4EA5A683.5000007@redhat.com>
References: <CALEg2urgsV9EK9cgbawiDJdvYt4p5wQ8M5b50pvF19=hEitSrg AT mail DOT gmail DOT com> <4EA5A683 DOT 5000007 AT redhat DOT com>
Date: Mon, 24 Oct 2011 13:47:14 -0500
Message-ID: <CALEg2urw7-rSCzE=62h=EnctNxZzdryULu33X_-MoNEJvfTU5Q@mail.gmail.com>
Subject: Re: General question on the status of named pipes
From: Nathan Thern <nthern AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mon, Oct 24, 2011 at 12:55 PM, Eric Blake <eblake AT redhat DOT com> wrote:
> Actually, named pipes have _never_ worked, at least according to the full
> set of POSIX rules.  It's just that some releases had code that limped along
> better than in other releases for the particular use cases you happened to
> throw at them.  cgf is working miracles to get it as far along as he has,
> but it's a very tough job to emulate POSIX fifos on top of windows.

Interesting. I used them successfully for a couple of years with 1.5,
IIRC. My mode of usage was usually something like:

$ mkfifo fifo1 fifo2

$ decode_audio_to_PCM audiofile | tee fifo1 > fifo2 &

$ encode_audio_to_format_1 -o newaudio1 fifo1

$ encode_audio_to_format_2 -o newaudio2 fifo2

This has two distinct advantages over tempfiles for me. I don't have
to wait for the decode to complete before I start to re-encode & I
don't need the disk space for large chunks of uncompressed audio.

NT

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