From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60887 invoked by alias); 24 Oct 2019 09:51:53 -0000 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 Received: (qmail 60868 invoked by uid 89); 24 Oct 2019 09:51:52 -0000 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 Received: from conssluserg-01.nifty.com (HELO conssluserg-01.nifty.com) (210.131.2.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Oct 2019 09:51:50 +0000 Received: from Express5800-S70 (ntsitm355024.sitm.nt.ngn.ppp.infoweb.ne.jp [175.184.70.24]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x9O9pIcr005090 for ; Thu, 24 Oct 2019 18:51:18 +0900 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 09:51:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST) Message-Id: <20191024185121.23c6f671f6d7dc9daab6a623@nifty.ne.jp> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-10/txt/msg00145.txt.bz2 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 > #include > > 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 -- 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