Mercurial > emacs
diff src/sysdep.c @ 3826:647bef18618f
Changes for Irix 4.0, tested this time:
* s/irix4-0.h: Get rid of our fake definitions for setpgrp and
getpgrp.
* callproc.c (Fcall_process): Go ahead and use the USG calling
convention for setpgrp.
* ymakefile (pre-crt0.o): Add rule for this. Perhaps it will help
separate-source-directory compilation.
* emacs.c (shut_down_emacs): Some USG systems #define
EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems.
* sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and
non-USG.
* process.c [IRIX] (create_process): Don't put child in process
group zero before opening the tty; Irix is like USG in this
regard.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Fri, 18 Jun 1993 23:33:20 +0000 |
| parents | 68807e370e9d |
| children | e8bcf96f1418 |
line wrap: on
line diff
--- a/src/sysdep.c Fri Jun 18 21:40:46 1993 +0000 +++ b/src/sysdep.c Fri Jun 18 23:33:20 1993 +0000 @@ -571,7 +571,14 @@ #else #ifdef SIGTSTP - EMACS_KILLPG (getpgrp (0), SIGTSTP); + { +#ifdef USG + int pgrp = getpgrp (); +#else + int pgrp = getpgrp (0); +#endif + EMACS_KILLPG (pgrp, SIGTSTP); + } #else /* No SIGTSTP */ #ifdef USG_JOBCTRL /* If you don't know what this is don't mess with it */
