delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/03/25/16:52:42

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Sun, 25 Mar 2001 16:53:05 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: Egor Duda <cygwin-developers AT cygwin DOT com>
Subject: Re: setup will have to wait :[
Message-ID: <20010325165305.A32188@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: Egor Duda <cygwin-developers AT cygwin DOT com>
References: <001b01c0b397$2d1ca720$0200a8c0 AT lifelesswks> <1783665564 DOT 20010323155742 AT logos-m DOT ru> <000501c0b3e9$7fa3d890$0200a8c0 AT lifelesswks> <183264218826 DOT 20010325190658 AT logos-m DOT ru> <005b01c0b575$112ff2d0$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <005b01c0b575$112ff2d0$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Mon, Mar 26, 2001 at 07:46:35AM +1000

On Mon, Mar 26, 2001 at 07:46:35AM +1000, Robert Collins wrote:
>----- Original Message -----
>From: "Egor Duda" <deo AT logos-m DOT ru>
>Subject: Re: setup will have to wait :[
>
>
>> Hi!
>>
>> Saturday, 24 March, 2001 Robert Collins robert DOT collins AT itdomain DOT com DOT au
>wrote:
>>
>> RC> 1. Do "non-unix" apps understand the concept of a FIFO file?
>>
>> directly -- not, but they can possibly inherit, say, stdout handle
>> from parent cygwin process, and it can possibly be a handle of fifo.
>> For example, you run
>> "sh -c ./some-script.sh >fifo-to-script-log-processor"
>> and 'some-script.sh' contains non-cygwin apps
>
>Right, so _how do we pass the fd_ to the child process? I'll look into
>spawn and fork. Worst case though: fifos are cygwin only. Best case I
>find some way of tricking the OS into loading up the cygwin code and
>writing "through it". Hmm I wonder if an IFS could do this (How much
>work did I think this was going to be ?!).

They're inherited automatically.  The fd table is copied automatically.
Non-cygwin processes inherit the handles but they won't know what to do
with them since they don't understand cygwin fds.

>> RC> I know that cygwin already has named pipe support
>>
>> ? what do you mean by this? do you mean native calls such as
>> CreateNamedPipe () etc. or something else?
>
>>From comments about sshd and cvs on 9x and the syncronisation problems -
>so I may be off base. I haven't checked the code. Implementing this via
>Named Pipes will be just as tricky as far as non-cygwin programs though
>won't it?.

You can't use named pipes.  You can't create them on Windows 95.

Cygwin doesn't implement named pipes.  Isn't a fifo == a named pipe
anyway?

cgf

- Raw text -


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