www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/07/10/10:13:16

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: tty handling fix
10 Jul 1998 10:13:16 -0700 :
Message-ID: <01BDAC45.EA1CD180.cygnus.cygwin32.developers@sos>
To: "'Christopher Faylor'" <cgf AT cygnus DOT com>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019