This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] cygwin 3.1.0-0.7 (TEST)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]