delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/07/10/08:35:22

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: tty handling fix
10 Jul 1998 08:35:22 -0700 :
Message-ID: <01BDAC38.62093AC0.cygnus.cygwin32.developers@sos>
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Sergey Okhapkin wrote:
> The last winsup snapshot has a bug when tty support is enabled - function 
login() calls open() and sets STD_INPUT_HANDLE to the handle of 
/var/run/utmp file :-)
>

The following change is required too:

--- /winsup/pinfo.cc    Thu Jun 18 23:18:37 1998
+++ winsup/pinfo.cc     Fri Jul 10 19:19:20 1998
@@ -104,6 +104,7 @@ pinfo_init (void)
       myself->pgid = 0;
       myself->ctty = -1;
       myself->uid = USHRT_MAX;
+      myself->process_state |= PID_INITIALIZING;
       unlock_pinfo ();

       environ_init ();         /* call after myself has been set up */

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


- Raw text -


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