From ed68af3eb73dadef51dc4941072c778214e1c225 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 1 Feb 2000 01:47:25 +0000 Subject: [PATCH] If TIOCSCTTY is defined, use it. This is required for proper operation under FreeBSD. --- v7/src/microcode/uxproc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/v7/src/microcode/uxproc.c b/v7/src/microcode/uxproc.c index f9884e00e..141c5ec52 100644 --- a/v7/src/microcode/uxproc.c +++ b/v7/src/microcode/uxproc.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: uxproc.c,v 1.24 2000/01/18 05:10:07 cph Exp $ +$Id: uxproc.c,v 1.25 2000/02/01 01:47:25 cph Exp $ Copyright (c) 1990-2000 Massachusetts Institute of Technology @@ -29,10 +29,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include "error: can't hack subprocess I/O without dup2() or equivalent" #endif -#if defined(__osf__) || defined(__bsdi__) -#define USE_TIOCSCTTY -#endif - extern char ** environ; extern void EXFUN ((*subprocess_death_hook), (pid_t pid, wait_status_t * status)); @@ -347,7 +343,7 @@ DEFUN (OS_make_subprocess, || ((SLAVE_PTY_P (ctty_name)) && (! (SETUP_SLAVE_PTY (fd)))) #endif || (! (isatty (fd))) -#ifdef USE_TIOCSCTTY +#ifdef TIOCSCTTY || ((UX_ioctl (fd, TIOCSCTTY, 0)) < 0) #endif /* Tell the controlling terminal its process group. */ -- 2.25.1