diff options
| author | Jim Blandy | 1993-06-17 22:03:06 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-17 22:03:06 +0000 |
| commit | b5aaed99d0021ea3c2943f98225239d051e60007 (patch) | |
| tree | eb28fa9b1d2c7ce03fc34cdcfcbc9c824dc93d43 /src/process.c | |
| parent | cca310dacfa95c43da82eb74136c56ad285fc33b (diff) | |
| download | emacs-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/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |