public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)
Date: Thu, 24 Oct 2019 09:51:00 -0000	[thread overview]
Message-ID: <20191024185121.23c6f671f6d7dc9daab6a623@nifty.ne.jp> (raw)
In-Reply-To: <CALK-3mLCyNo7Eqx9zqrU2EBg0YV8miFTgQVhVQnDDjLpUjdUgg@mail.gmail.com>

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.yano@nifty.ne.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

  reply	other threads:[~2019-10-24  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-24  7:19 Biswapriyo Nath
2019-10-24  9:51 ` Takashi Yano [this message]
2019-10-24 13:25   ` Biswapriyo Nath
  -- strict thread matches above, loose matches on Subject: below --
2019-10-11 21:32 Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191024185121.23c6f671f6d7dc9daab6a623@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).