diff options
| author | Karl Heuer | 1994-03-18 00:23:47 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-03-18 00:23:47 +0000 |
| commit | ff773a4e166e0b84f4a34135321d6bd35e07943e (patch) | |
| tree | a824dc931e07331fdd76e6305e1c0c55b31006dc /src/process.c | |
| parent | 5a6e5452167f81878a8af4a31e884822a95a6a59 (diff) | |
| download | emacs-ff773a4e166e0b84f4a34135321d6bd35e07943e.tar.gz emacs-ff773a4e166e0b84f4a34135321d6bd35e07943e.zip | |
(create_process): Skip the ioctl if fd is -1.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 6e9da96bf07..8db5209620d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1275,7 +1275,7 @@ create_process (process, new_argv, current_dir) | |||
| 1275 | #endif /* USG */ | 1275 | #endif /* USG */ |
| 1276 | #endif /* not HAVE_SETSID */ | 1276 | #endif /* not HAVE_SETSID */ |
| 1277 | #ifdef NTTYDISC | 1277 | #ifdef NTTYDISC |
| 1278 | if (pty_flag) | 1278 | if (pty_flag && xforkin >= 0) |
| 1279 | { | 1279 | { |
| 1280 | /* Use new line discipline. */ | 1280 | /* Use new line discipline. */ |
| 1281 | int ldisc = NTTYDISC; | 1281 | int ldisc = NTTYDISC; |