aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-06-17 22:03:06 +0000
committerJim Blandy1993-06-17 22:03:06 +0000
commitb5aaed99d0021ea3c2943f98225239d051e60007 (patch)
treeeb28fa9b1d2c7ce03fc34cdcfcbc9c824dc93d43 /src
parentcca310dacfa95c43da82eb74136c56ad285fc33b (diff)
downloademacs-b5aaed99d0021ea3c2943f98225239d051e60007.tar.gz
emacs-b5aaed99d0021ea3c2943f98225239d051e60007.zip
* callproc.c (Fcall_process, child_setup): If IRIX is #defined,
call setpgrp with arguments, even if USG is #defined. * process.c [IRIX] (create_process): Don't call setpgrp before opening the pty. Call it after doing the TIOCNOTTY ioctl.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c4
-rw-r--r--src/process.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 51ba9301cdc..55d97a69ac0 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -255,7 +255,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
255 { 255 {
256 if (fd[0] >= 0) 256 if (fd[0] >= 0)
257 close (fd[0]); 257 close (fd[0]);
258#ifdef USG 258#if defined (USG) && !defined (IRIX)
259 setpgrp (); 259 setpgrp ();
260#else 260#else
261 setpgrp (pid, pid); 261 setpgrp (pid, pid);
@@ -519,7 +519,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
519 close (out); 519 close (out);
520 close (err); 520 close (err);
521 521
522#ifdef USG 522#if defined (USG) && !defined (IRIX)
523 setpgrp (); /* No arguments but equivalent in this case */ 523 setpgrp (); /* No arguments but equivalent in this case */
524#else 524#else
525 setpgrp (pid, pid); 525 setpgrp (pid, pid);
diff --git a/src/process.c b/src/process.c
index fd15ea9bc3b..87697342b11 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1265,7 +1265,7 @@ create_process (process, new_argv, current_dir)
1265 ioctl (xforkin, TIOCSCTTY, 0); 1265 ioctl (xforkin, TIOCSCTTY, 0);
1266#endif 1266#endif
1267#else /* not HAVE_SETSID */ 1267#else /* not HAVE_SETSID */
1268#ifdef USG 1268#if defined (USG) && !defined (IRIX)
1269 /* It's very important to call setpgrp() here and no time 1269 /* It's very important to call setpgrp() here and no time
1270 afterwards. Otherwise, we lose our controlling tty which 1270 afterwards. Otherwise, we lose our controlling tty which
1271 is set when we open the pty. */ 1271 is set when we open the pty. */
@@ -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#ifndef USG 1285#if !defined (USG) || defined (IRIX)
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. */