aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c8
1 files 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[];
179 179
180#ifndef VMS 180#ifndef VMS
181#ifndef BSD4_1 181#ifndef BSD4_1
182#ifndef LINUX
182extern char *sys_siglist[]; 183extern char *sys_siglist[];
184#endif
183#else 185#else
184char *sys_siglist[] = 186char *sys_siglist[] =
185 { 187 {
@@ -1253,8 +1255,10 @@ create_process (process, new_argv, current_dir)
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