delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/11/07:05:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4C6283FC.4090103@gmail.com>
Date: Wed, 11 Aug 2010 04:05:32 -0700
From: Daniel Colascione <dan DOT colascione AT gmail DOT com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.5: Occasional failure of CreatePipe or signal handing due to thread-unsafe code in cwdstuff::set
References: <3C031C390CBF1E4A8CE1F74DE7ECAF3A140684F0AA AT MBX8 DOT EXCHPROD DOT USA DOT NET> <20100811054434 DOT GC32531 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20100811054434.GC32531@ednor.casa.cgf.cx>
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

On 8/10/10 10:44 PM, Christopher Faylor wrote:
> On Tue, Aug 10, 2010 at 09:53:46PM +0000, John Carey wrote:
>> Thanks for the test case for the CreateFile() problem; I used it to
>> create the following test, in which Windows 7 CreateFile() fails with
>> ERROR_INVALID_HANDLE even when using a stock Cygwin 1.7.5 DLL:
> 
> As Corinna said:  If you are mixing Windows calls with cygwin calls you
> are far into unsupported territory.  Cygwin isn't designed to let you
> seamlessly intermix things like pthreads/signals and the Windows API
> functions.

Then it seems the website needs to be updated. One of the major selling
points of Cygwin, as it were, is the ability to interact with the
Windows API world as well as the POSIX one: "Because processes run under
the standard Win32 subsystem, they can access both the UNIX
compatibility calls provided by Cygwin as well as any of the Win32 API
calls. This gives the programmer complete flexibility in designing the
structure of their program in terms of the APIs used. For example, they
could write a Win32-specific GUI using Win32 API calls on top of a UNIX
back-end that uses Cygwin."

I can understand requiring that users not deliberately create
inconsistencies between Cygwin data structures and those of Windows (and
I can understand throwing people who do that to the wolves), but
CreateFile is a fundamental system facility that should always work,
even in a Cygwin process.

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