From c14e53a4425e5d54c160ff597d0059dabff0f9d5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 25 Nov 1993 21:36:51 +0000 Subject: [PATCH] (create_process): Do setpgrp for USG regardless of IRIX. (process_send_signal) [IRIX5]: For SIGTSTP, use VSUSP, not VSWTCH. --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index afa1651dfca..105e055b180 100644 --- a/src/process.c +++ b/src/process.c @@ -1231,7 +1231,7 @@ create_process (process, new_argv, current_dir) ioctl (xforkin, TIOCSCTTY, 0); #endif #else /* not HAVE_SETSID */ -#if defined (USG) && !defined (IRIX) +#ifdef USG /* It's very important to call setpgrp() here and no time afterwards. Otherwise, we lose our controlling tty which is set when we open the pty. */ @@ -2370,7 +2370,7 @@ process_send_signal (process, signo, current_group, nomsg) case SIGTSTP: tcgetattr (XINT (p->infd), &t); -#ifdef VSWTCH +#if defined (VSWTCH) && !defined (IRIX5) send_process (proc, &t.c_cc[VSWTCH], 1); #else send_process (proc, &t.c_cc[VSUSP], 1); -- 2.39.5