From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25218 invoked by alias); 19 Jul 2012 12:43:07 -0000 Received: (qmail 25209 invoked by uid 22791); 19 Jul 2012 12:43:06 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 12:42:49 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6JCgmbL003910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 Jul 2012 08:42:49 -0400 Received: from [10.3.113.102] (ovpn-113-102.phx2.redhat.com [10.3.113.102]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6JCgmT7021106 for ; Thu, 19 Jul 2012 08:42:48 -0400 Message-ID: <500800C7.3050107@redhat.com> Date: Thu, 19 Jul 2012 12:43:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Problem with <> redirection to named pipe References: In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig39526428C1BA8836192B3A70" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00393.txt.bz2 --------------enig39526428C1BA8836192B3A70 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 975 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@redhat.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" Content-length: 620 -----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--