RE: - stdin read problem

2008-04-25 Thread Dave Korn
Alexey Zakharov wrote on 25 April 2008 15:48: > The program does the following: > - The main thread creates a helper thread which reads stdin and prints > the data read. > - stdin is read via ReadFile() Win32 API function. No, that's *not* stdin. Stdin is file descriptor zero, and you aren't

- stdin read problem

2008-04-25 Thread Alexey Zakharov
Hi, I've attached simple cpp program which demonstrates the problem. The program works fine from cmd.exe, but fails when started from cygwin. The program does the following: - The main thread creates a helper thread which reads stdin and prints the data read. - stdin is read via ReadFile() Win32

- stdin read problem

2008-04-25 Thread Alexey Zakharov
Hi, I've attached simple cpp program which demonstrates the problem. The program works fine from cmd.exe, but fails when started from cygwin. The program does the following: - The main thread creates a helper thread which reads stdin and prints the data read. - stdin is read via ReadFile() Win32