Mail Archives: cygwin-developers/1998/07/10/08:35:22
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 -