From: Chris Hanson Date: Mon, 22 Nov 1993 22:36:28 +0000 (+0000) Subject: OSF/1 requires the TIOCSCTTY ioctl to be executed in order to X-Git-Tag: 20090517-FFI~7441 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=61519f61c0d81424d12464df44a6f81052c1a4da;p=mit-scheme.git OSF/1 requires the TIOCSCTTY ioctl to be executed in order to associate a controlling terminal with a session leader. --- diff --git a/v7/src/microcode/uxproc.c b/v7/src/microcode/uxproc.c index 208220c90..f91ae1238 100644 --- a/v7/src/microcode/uxproc.c +++ b/v7/src/microcode/uxproc.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: uxproc.c,v 1.15 1993/06/24 07:10:11 gjr Exp $ +$Id: uxproc.c,v 1.16 1993/11/22 22:36:28 cph Exp $ Copyright (c) 1990-92 Massachusetts Institute of Technology @@ -354,6 +354,9 @@ DEFUN (OS_make_subprocess, || ((SLAVE_PTY_P (ctty_name)) && (! (SETUP_SLAVE_PTY (fd)))) #endif || (! (isatty (fd))) +#ifdef TIOCSCTTY + || ((UX_ioctl (fd, TIOCSCTTY, 0)) < 0) +#endif || ((child_setup_tty (fd)) < 0)) goto kill_child; /* Use CTTY for standard I/O if requested. */