delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,TW_MK,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <500800C7.3050107@redhat.com> |
Date: | Thu, 19 Jul 2012 06:42:47 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Problem with <> redirection to named pipe |
References: | <CAB-uQXXY3UyOHdPg7tDt0-8sAD+Ne0_mLBDw1ZXDh7FLSKQVzg AT mail DOT gmail DOT com> |
In-Reply-To: | <CAB-uQXXY3UyOHdPg7tDt0-8sAD+Ne0_mLBDw1ZXDh7FLSKQVzg@mail.gmail.com> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
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 |
--------------enig39526428C1BA8836192B3A70 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/19/2012 12:53 AM, Nikolay Shirokovskiy wrote: > Hello. >=20 > When I try: >=20 >> mkfifo fifo >> exec 5<>fifo POSIX says this is non-portable. You cannot expect it to work everywhere. >=20 > I get "Device or resource busy" error message. On linux distro these > lines work well. As an extension to POSIX, but not as a standard. >=20 > I made some browising through archives and encountered notices that > FIFOs implementation > in Cygwin is incomplete. Is this the cause or I miss something? I don't know if cgf's recent work on fifos has achieved the same extension as Linux of being able to open a fifo for read-write; but I know that Autoconf specifically avoids using <> on fifos, and instead uses a background subshell where the two forks of the shell coordinate which shell opens for read and the other opens for write, precisely because of cygwin. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig39526428C1BA8836192B3A70 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQCADHAAoJEKeha0olJ0NqFPwH/iPoDT7mKG/J0OjOzD/jPPNO gdR/KNaeZjBU8RPtVjwKY+akcm77LGPM+gtpUlM/p1CHmTrj98vyDTYEjRWim0Ei 0J/yMW0VdI7kOaRCUj2VCqTI+vgjHXOl4LfBIEoOasMRtmyzZQBN6+7EdtRAMWSD u/oXfQPlH/3qmsP34bJIQlaenPnqd6XABnaUMpVGHrAuK/jK3XM7T51VVYsCe8UO RAUY47UWGBcfmAYuFKyM/10djqHFp1oAboeBJTpXf54mMpsuS7fKkBxmIuL9KRTI 8vWxZ2IeLMRF19rs83ktT7yPJFRpvrzVeWthSBjUKGnyIrKxS3HDe70xgaD4Rzo= =POBe -----END PGP SIGNATURE----- --------------enig39526428C1BA8836192B3A70--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |