delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/03/23/07:47:04

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
Message-ID: <001b01c0b397$2d1ca720$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-developers AT cygwin DOT com>
Subject: setup will have to wait :[
Date: Fri, 23 Mar 2001 23:45:25 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 23 Mar 2001 12:40:08.0421 (UTC) FILETIME=[64D04150:01C0B396]

I just ran into another apparently missing function - mkfifo. I've
thought up a way to implement this - but I'd like some feedback from
someone with more machines that openBSD & win2000.

what's the expected result of

mkfifo foo.
cat foo > 1 &
cat foo > 2 &
echo "test" > foo

should I code fifo's so that the result of that test will be
cat foo > 2 returns a read error (file locked), or so that multiple
reads do occur?

It's much the same to me either way - I just don't know the expected
behaviour of a fifo in that circumstance.

For those interested in the "how" side, I'm planning on avoiding named
pipes (due to the horror stories I've heard about win 9x).
Instead I plan on using a manual reset named event object and a named
mutex. The mutex will control access, and the event object will control
syncronisation. (I.e if process 2 opens & tries to write, it will
successfuly get the mutex, and then wait for the event object to be
pulsed. It will then "write" the data. The recieving process will
recieve the mutex when the first process completes the write. That then
gets repeated.

For data transfer, I was thinking of using shared named memory:anyone
know of caveats for that on win9x?

Rob.

- Raw text -


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