# HG changeset patch # User Jim Blandy # Date 714206123 0 # Node ID a48ed1d416dd472104f3a83702a93bdff59c2063 # Parent a7f08730f7ae78c03b69366c9b966c1769bc362b * process.c (process_send_signal): Don't send SIGTSTP if the system doesn't have that facility. * process.c: [USG5] Don't include . [USG] Don't bother including termios, termio, or fcntl; systerm.h takes care of all that. Remove the "mis;tak-+;;" line from the code; apparently this section of code does get used. * process.c (wait_reading_process_input): Put comments around text following #endif. diff -r a7f08730f7ae -r a48ed1d416dd src/process.c --- a/src/process.c Wed Aug 19 06:34:26 1992 +0000 +++ b/src/process.c Wed Aug 19 06:35:23 1992 +0000 @@ -48,7 +48,7 @@ #if defined(BSD) || defined(STRIDE) #include -#if !defined (O_NDELAY) && defined (HAVE_PTYS) +#if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5) #include #endif /* HAVE_PTYS and no O_NDELAY */ #endif /* BSD or STRIDE */ @@ -119,7 +119,6 @@ #ifndef VMS #ifndef WAITTYPE #if !defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER) -mis;tak-+;;: #define WAITTYPE int #define WIFSTOPPED(w) ((w&0377) == 0177) #define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0) @@ -1796,7 +1795,7 @@ Available &= ~(ChannelMask (comm_server)); create_commchan (); } -#endif vipc +#endif /* vipc */ if (! wait_proc) got_some_input |= nfds > 0; @@ -2245,10 +2244,12 @@ ioctl (XFASTINT (p->infd), TIOCGETC, &c); send_process (proc, &c.t_quitc, 1); return Qnil; +#ifdef SIGTSTP case SIGTSTP: ioctl (XFASTINT (p->infd), TIOCGLTC, &lc); send_process (proc, &lc.t_suspc, 1); return Qnil; +#endif /* SIGTSTP */ } #endif /* ! defined (TIOCGLTC) && defined (TIOCGETC) */ /* It is possible that the following code would work