Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc28
1 files changed, 1 insertions, 27 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index 1b509e261..edb8354ef 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -25,7 +25,7 @@ details. */
/* Common functions shared by tty/console */
void
-fhandler_termios::tcinit (tty_min *this_tc, int force)
+fhandler_termios::tcinit (tty_min *this_tc, bool force)
{
/* Initial termios values */
@@ -101,32 +101,6 @@ tty_min::kill_pgrp (int sig)
sig_send (myself, sig);
}
-void
-tty_min::set_ctty (int ttynum, int flags)
-{
- if ((myself->ctty < 0 || myself->ctty == ttynum) && !(flags & O_NOCTTY))
- {
- myself->ctty = ttynum;
- syscall_printf ("attached tty%d sid %d, pid %d, tty->pgid %d, tty->sid %d",
- ttynum, myself->sid, myself->pid, pgid, getsid ());
-
- pinfo p (getsid ());
- if (myself->sid == myself->pid &&
- (p == myself || !proc_exists (p)))
- {
- paranoid_printf ("resetting tty%d sid. Was %d, now %d. pgid was %d, now %d.",
- ttynum, getsid (), myself->sid, getpgid (), myself->pgid);
- /* We are the session leader */
- setsid (myself->sid);
- setpgid (myself->pgid);
- }
- else
- myself->sid = getsid ();
- if (getpgid () == 0)
- setpgid (myself->pgid);
- }
-}
-
bg_check_types
fhandler_termios::bg_check (int sig)
{