[PATCH v2] Cygwin: pty: Revise code waiting for forwarding by master_fwd_thread.
Takashi Yano
takashi.yano@nifty.ne.jp
Wed Jan 22 16:06:00 GMT 2020
On Thu, 23 Jan 2020 01:00:11 +0900
Takashi Yano wrote:
> /* Test code */
> #include <windows.h>
> #include <stdio.h>
>
> int main()
> {
> DWORD n;
> printf("AAAA\n");
> WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), "BBBB\r\n", 6, &n, 0);
> return 0;
> }
The problem occurs when the code above is compiled as cygwin binary.
Not windows native binary. In other words, use cygwin-gcc rather than
mingw-gcc.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin-patches
mailing list