Mercurial > emacs
diff src/emacs.c @ 554:e14686fb979e
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 20 Feb 1992 04:15:20 +0000 |
parents | d5b34c57b5e7 |
children | 1c2d1836941a |
line wrap: on
line diff
--- a/src/emacs.c Wed Feb 19 20:21:27 1992 +0000 +++ b/src/emacs.c Thu Feb 20 04:15:20 1992 +0000 @@ -52,6 +52,8 @@ #include "lisp.h" #include "commands.h" +#include "systerm.h" + #ifndef O_RDWR #define O_RDWR 2 #endif @@ -124,15 +126,10 @@ fatal_error_in_progress = 1; /* If we are controlling the terminal, reset terminal modes */ -#if defined(TIOCGPGRP) || defined(HAVE_TERMIOS) +#ifdef EMACS_HAVE_TTY_PGRP { int tpgrp; - if ( -#ifdef HAVE_TERMIOS - (tpgrp = tcgetpgrp (0)) != -1 -#else - ioctl(0, TIOCGPGRP, &tpgrp) == 0 -#endif + if (EMACS_GET_TTY_PGRP (0, &tpgrp) != -1 && tpgrp == getpgrp (0)) { reset_sys_modes ();