diff options
| author | Richard M. Stallman | 1993-05-24 17:13:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-24 17:13:24 +0000 |
| commit | 084fd64ac9daee2a89d393f07ce87ec8df543330 (patch) | |
| tree | a03c4c83cf2f4253b09b1c0f1e203dbce102f6c4 /src/process.c | |
| parent | e94817d7cd4406765f6a2728ddbaf16ed7e0dac4 (diff) | |
| download | emacs-084fd64ac9daee2a89d393f07ce87ec8df543330.tar.gz emacs-084fd64ac9daee2a89d393f07ce87ec8df543330.zip | |
(create_process): Ignore retval from TIOCSTTY.
(sys_siglist) [LINUX]: Don't even declare it.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
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 | ||
| 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 | { |
| @@ -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 |