area if it is already initialized.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Augment debugging info.
+Tue Aug 7 01:13:58 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * fhandler_console.cc (get_tty_stuff): Don't initialize shared memory
+ console area if it is already initialized.
+
+ * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Augment debugging
+ info.
+
Mon Aug 6 19:58:43 2001 Christopher Faylor <cgf@cygnus.com>
* cygheap.cc (cygheap_root::set): Avoid treating '/' specially.
sizeof (*shared_console_info),
NULL);
ProtectHandle (cygheap->console_h);
- shared_console_info->setntty (TTY_CONSOLE);
- shared_console_info->setsid (myself->sid);
- shared_console_info->set_ctty (TTY_CONSOLE, flags);
+ if (!shared_console_info->ntty)
+ {
+ shared_console_info->setntty (TTY_CONSOLE);
+ shared_console_info->setsid (myself->sid);
+ shared_console_info->set_ctty (TTY_CONSOLE, flags);
+ }
return shared_console_info;
}
int
fhandler_termios::tcsetpgrp (const pid_t pgid)
{
- termios_printf ("pgid %d, sid %d, tsid %d", pgid,
+ termios_printf ("tty %d pgid %d, sid %d, tsid %d", tc->ntty, pgid,
myself->sid, tc->getsid ());
if (myself->sid != tc->getsid ())
{