delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/10/24/05:52:46

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=Y1UmxFcZkhnSXGr9qKh7aqS8bJztkvgS2VmX+yLxBMP
DhAPJ0zKqe7RKjQ41Ahtm/pLGlPzpCyI83R1jaC9fTgyxjzKF5jHsJHpZlF3D164
1hjVuvI0GyFRWR0wqhOG4Z2E0MDUxLIFGnzM8SlZy9OqT/3qqf2Te/PGSysUBD1o
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=TiuMPA/lR9Fsy8RhA9s2xkMjI3Y=; b=TyBg71vCMU5nAe0TX
uhUoNvxR4DUCkkhMzOMh6QzklnKJkMf1Rc5qeKaWivX7OG7Ex+imOhuj+e4yovyK
ZFesc+71cEgcfB++9c4HDrmmMAo/wsHmWYPbVr+An1ENWOsO9m0+ZhGOKdxLuCJZ
0d9nZUPy31imr3xkivStb1Yp+c=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:909
X-HELO: conssluserg-01.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x9O9pIcr005090
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1571910679; bh=nOVaq7qtk4vjNQoj2ZPl0uJyPpbEJ4VXCNy75GEZ7ew=; h=Date:From:To:Subject:In-Reply-To:References:From; b=a/Hcp1qbTFB+MLSvgNzvjbzmfOOghfLK5j6N7aslvlVFLO31T5M97p1PTxZ5wfErR VggxotYOsKPD2uy06myLjvnP297sUseDbZ6HBKLEcuF6UYBNhBuXABewMvaeXkRTxk gDrWXsmv8Umb0LOJooYCjVTMR4FDckmpOTkBscsZKXX5l3YAg36kV/UBNfuOOythGh +8M7t1UF8U+M52MS+09yv2tBXaphij6m+o+weviOUPHtYAiW5uiLwOeC4WAI02Z9/t o1Lmlk3Da86b3+KlWTTGwFKCc+sPBz9vGbBfP5y8yinYnImADU01uX3Mlk6JTzsOB0 DZQkyMfC7opMw==
Date: Thu, 24 Oct 2019 18:51:21 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)
Message-Id: <20191024185121.23c6f671f6d7dc9daab6a623@nifty.ne.jp>
In-Reply-To: <CALK-3mLCyNo7Eqx9zqrU2EBg0YV8miFTgQVhVQnDDjLpUjdUgg@mail.gmail.com>
References: <CALK-3mLCyNo7Eqx9zqrU2EBg0YV8miFTgQVhVQnDDjLpUjdUgg AT mail DOT gmail DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

On Thu, 24 Oct 2019 12:47:29 +0530
Biswapriyo Nath wrote:
> While using GetFileType API upon standard console handle, GetLastError
> shows error code 187 aka. ERROR_SEM_NOT_FOUND. GetLastError shows 0
> (zero) in stable cygwin version. Here is the test code:
> 
> #include <Windows.h>
> #include <stdio.h>
> 
> int main(void)
> {
>     SetLastError(0);
>     printf("%d (%d)\n", GetFileType(GetStdHandle(STD_INPUT_HANDLE)),
> GetLastError());
>     printf("%d (%d)\n", GetFileType(GetStdHandle(STD_OUTPUT_HANDLE)),
> GetLastError());
>     printf("%d (%d)\n", GetFileType(GetStdHandle(STD_ERROR_HANDLE)),
> GetLastError());
> }

I cannot reproduce the problem. In my environment, the output is:
2 (0)
2 (0)
2 (0)

(1) Could you please let us know more detail about your environment,
    compiler, etc?
(2) What happens if you execute cmd.exe?

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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