Mercurial > emacs
changeset 3023:cfd999700613
(create_process): Ignore retval from TIOCSTTY.
(sys_siglist) [LINUX]: Don't even declare it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 May 1993 17:13:24 +0000 |
parents | 9f168990e613 |
children | 69f67c3e6f81 |
files | src/process.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Mon May 24 16:18:33 1993 +0000 +++ b/src/process.c Mon May 24 17:13:24 1993 +0000 @@ -179,7 +179,9 @@ #ifndef VMS #ifndef BSD4_1 +#ifndef LINUX extern char *sys_siglist[]; +#endif #else char *sys_siglist[] = { @@ -1253,8 +1255,10 @@ 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