aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorJim Blandy1993-06-18 23:33:20 +0000
committerJim Blandy1993-06-18 23:33:20 +0000
commit5a570e3721ec904cb24436f5fe1e92ec08913e0d (patch)
treeef08d4f7c019ae34d1e764515c870ff270331d5c /src/process.c
parent6d68d7937b9a0a79ecaef2dfb264c52fccf0e2ce (diff)
downloademacs-5a570e3721ec904cb24436f5fe1e92ec08913e0d.tar.gz
emacs-5a570e3721ec904cb24436f5fe1e92ec08913e0d.zip
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.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 87697342b11..4c2fa5d7c00 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1282,7 +1282,7 @@ create_process (process, new_argv, current_dir)
1282 int j = open ("/dev/tty", O_RDWR, 0); 1282 int j = open ("/dev/tty", O_RDWR, 0);
1283 ioctl (j, TIOCNOTTY, 0); 1283 ioctl (j, TIOCNOTTY, 0);
1284 close (j); 1284 close (j);
1285#if !defined (USG) || defined (IRIX) 1285#ifndef USG
1286 /* In order to get a controlling terminal on some versions 1286 /* In order to get a controlling terminal on some versions
1287 of BSD, it is necessary to put the process in pgrp 0 1287 of BSD, it is necessary to put the process in pgrp 0
1288 before it opens the terminal. */ 1288 before it opens the terminal. */