comparison src/process.c @ 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 e94a593c3952
children 98505a819898
comparison
equal deleted inserted replaced
3022:9f168990e613 3023:cfd999700613
177 extern sys_nerr; 177 extern sys_nerr;
178 extern char *sys_errlist[]; 178 extern char *sys_errlist[];
179 179
180 #ifndef VMS 180 #ifndef VMS
181 #ifndef BSD4_1 181 #ifndef BSD4_1
182 #ifndef LINUX
182 extern char *sys_siglist[]; 183 extern char *sys_siglist[];
184 #endif
183 #else 185 #else
184 char *sys_siglist[] = 186 char *sys_siglist[] =
185 { 187 {
186 "bum signal!!", 188 "bum signal!!",
187 "hangup", 189 "hangup",
1251 /* First, disconnect its current controlling terminal. */ 1253 /* First, disconnect its current controlling terminal. */
1252 #ifdef HAVE_SETSID 1254 #ifdef HAVE_SETSID
1253 setsid (); 1255 setsid ();
1254 #ifdef TIOCSCTTY 1256 #ifdef TIOCSCTTY
1255 /* Make the pty's terminal the controlling terminal. */ 1257 /* Make the pty's terminal the controlling terminal. */
1256 if (pty_flag && (ioctl (xforkin, TIOCSCTTY, 0) < 0)) 1258 if (pty_flag)
1257 abort (); 1259 /* We ignore the return value
1260 because faith@cs.unc.edu says that is necessary on Linux. */
1261 ioctl (xforkin, TIOCSCTTY, 0);
1258 #endif 1262 #endif
1259 #else /* not HAVE_SETSID */ 1263 #else /* not HAVE_SETSID */
1260 #ifdef USG 1264 #ifdef USG
1261 /* It's very important to call setpgrp() here and no time 1265 /* It's very important to call setpgrp() here and no time
1262 afterwards. Otherwise, we lose our controlling tty which 1266 afterwards. Otherwise, we lose our controlling tty which