Mail Archives: cygwin-developers/1998/07/10/10:13:16
Christopher Faylor wrote:
> Can you give me an example of what this is trying to fix? Your changes
> seem simple but you've actually changed the flow of control in a way that
> may cause other problems.
>
When tty support is enabled, create_tty_master() calls login() to write
utmp/wtmp files. Standard file descriptors (0-2) are not inited at this
time and open() call opens utmp file as file descriptor 1, calls
set_std_handle() which sets STD_OUTPUT_HANDLE to the handle of opened file!
The best solution for this problem is to rewrite login() with win32 api
file calls instead of unix-like calls (as I did in logout()).
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
- Raw text -