home *** CD-ROM | disk | FTP | other *** search
-
- *** P1/emacs.c Wed Feb 6 11:27:04 1991
- --- emacs.c Thu Feb 7 11:44:05 1991
- ***************
- *** 43,46 ****
- --- 43,50 ----
- #endif
-
- + #ifdef HAVE_TERMIOS
- + #include <termios.h>
- + #endif
- +
- #ifdef APOLLO
- #ifndef APOLLO_SR10
- ***************
- *** 109,116 ****
- int sig;
- {
- - #ifdef BSD
- - int tpgrp;
- - #endif /* BSD */
- -
- fatal_error_code = sig;
- signal (sig, SIG_DFL);
- --- 113,116 ----
- ***************
- *** 123,135 ****
-
- /* If we are controlling the terminal, reset terminal modes */
- ! #ifdef BSD
- ! if (ioctl(0, TIOCGPGRP, &tpgrp) == 0
- && tpgrp == getpgrp (0))
- ! #endif /* BSD */
- ! {
- ! reset_sys_modes ();
- ! if (sig != SIGTERM)
- ! fprintf (stderr, "Fatal error (%d).", sig);
- ! }
-
- /* Clean up */
- --- 123,143 ----
-
- /* If we are controlling the terminal, reset terminal modes */
- ! #if defined(TIOCGPGRP) || defined(HAVE_TERMIOS)
- ! {
- ! int tpgrp;
- ! if (
- ! #ifdef HAVE_TERMIOS
- ! (tpgrp = tcgetpgrp (0)) != -1
- ! #else
- ! ioctl(0, TIOCGPGRP, &tpgrp) == 0
- ! #endif
- && tpgrp == getpgrp (0))
- ! {
- ! reset_sys_modes ();
- ! if (sig != SIGTERM)
- ! fprintf (stderr, "Fatal error (%d).", sig);
- ! }
- ! }
- ! #endif /* uses pgrp */
-
- /* Clean up */
-
- *** P1/process.c Wed Feb 6 11:46:28 1991
- --- process.c Thu Feb 7 11:52:45 1991
- ***************
- *** 46,50 ****
- --- 46,54 ----
- #endif /* BSD or STRIDE */
- #ifdef USG
- + #ifdef HAVE_TERMIOS
- + #include <termios.h>
- + #else
- #include <termio.h>
- + #endif
- #include <fcntl.h>
- #endif /* USG */
- ***************
- *** 2006,2022 ****
- current_group = Qnil;
-
- ! #ifdef TIOCGPGRP /* Not sure about this! (fnf) */
- /* If we are using pgrps, get a pgrp number and make it negative. */
- if (!NULL (current_group))
- {
- ! ioctl (XFASTINT (p->infd), TIOCGPGRP, &gid);
- ! gid = - gid;
- }
- - else
- - gid = - XFASTINT (p->pid);
- - #else /* not using pgrps */
- - /* Can't select pgrps on this system, so we know that
- - the child itself heads the pgrp. */
- - gid = - XFASTINT (p->pid);
- #endif /* not using pgrps */
-
- --- 2010,2030 ----
- current_group = Qnil;
-
- ! /* Assume that we can't select pgrps on this system,
- ! so the child itself heads the pgrp. */
- ! gid = - XFASTINT (p->pid);
- !
- ! #if defined(TIOCGPGRP) || defined(HAVE_TERMIOS)
- /* If we are using pgrps, get a pgrp number and make it negative. */
- if (!NULL (current_group))
- {
- ! int i;
- ! #ifdef HAVE_TERMIOS
- ! if ((i = tcgetpgrp (XFASTINT (p->infd))) != -1)
- ! gid = -i;
- ! #else
- ! if (ioctl (XFASTINT (p->infd), TIOCGPGRP, &i) == 0)
- ! gid = -i;
- ! #endif
- }
- #endif /* not using pgrps */
-
-
- *** P1/sysdep.c Wed Feb 6 11:34:32 1991
- --- sysdep.c Thu Feb 7 11:58:07 1991
- ***************
- *** 458,462 ****
- {
- #ifdef HAVE_TERMIOS
- ! tcflush (channel, TCOFLUSH);
- #else
- #ifdef TCFLSH
- --- 458,464 ----
- {
- #ifdef HAVE_TERMIOS
- ! /* If we try this, we get hit with SIGTTIN, because
- ! the child's tty belongs to the child's pgrp. */
- ! /* tcflush (channel, TCOFLUSH); */
- #else
- #ifdef TCFLSH
-