From 084fd64ac9daee2a89d393f07ce87ec8df543330 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 24 May 1993 17:13:24 +0000 Subject: [PATCH] (create_process): Ignore retval from TIOCSTTY. (sys_siglist) [LINUX]: Don't even declare it. --- src/process.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index c7838c13b89..9e2bdad45e3 100644 --- a/src/process.c +++ b/src/process.c @@ -179,7 +179,9 @@ extern char *sys_errlist[]; #ifndef VMS #ifndef BSD4_1 +#ifndef LINUX extern char *sys_siglist[]; +#endif #else char *sys_siglist[] = { @@ -1253,8 +1255,10 @@ create_process (process, new_argv, current_dir) setsid (); #ifdef TIOCSCTTY /* Make the pty's terminal the controlling terminal. */ - if (pty_flag && (ioctl (xforkin, TIOCSCTTY, 0) < 0)) - abort (); + if (pty_flag) + /* We ignore the return value + because faith@cs.unc.edu says that is necessary on Linux. */ + ioctl (xforkin, TIOCSCTTY, 0); #endif #else /* not HAVE_SETSID */ #ifdef USG