diff options
| author | Stefan Monnier | 2003-06-04 23:21:11 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-06-04 23:21:11 +0000 |
| commit | 26d7389d544b0316dd581719138ef82b020f5b17 (patch) | |
| tree | 409f0a95494d226e995b9137ad1d39168b14f6db /src/process.c | |
| parent | 192b65f581034c30739c6438a77dbb3346e6ae26 (diff) | |
| download | emacs-26d7389d544b0316dd581719138ef82b020f5b17.tar.gz emacs-26d7389d544b0316dd581719138ef82b020f5b17.zip | |
(allocate_pty): Revert part of the previous patch.
(Faccept_process_output): Simplify.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index 9d7f145dcde..fcc07a38c46 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -469,6 +469,7 @@ allocate_pty () | |||
| 469 | for (i = 0; i < 16; i++) | 469 | for (i = 0; i < 16; i++) |
| 470 | #endif | 470 | #endif |
| 471 | { | 471 | { |
| 472 | struct stat stb; /* Used in some PTY_OPEN. */ | ||
| 472 | #ifdef PTY_NAME_SPRINTF | 473 | #ifdef PTY_NAME_SPRINTF |
| 473 | PTY_NAME_SPRINTF | 474 | PTY_NAME_SPRINTF |
| 474 | #else | 475 | #else |
| @@ -479,7 +480,6 @@ allocate_pty () | |||
| 479 | PTY_OPEN; | 480 | PTY_OPEN; |
| 480 | #else /* no PTY_OPEN */ | 481 | #else /* no PTY_OPEN */ |
| 481 | { | 482 | { |
| 482 | struct stat stb; | ||
| 483 | # ifdef IRIS | 483 | # ifdef IRIS |
| 484 | /* Unusual IRIS code */ | 484 | /* Unusual IRIS code */ |
| 485 | *ptyv = emacs_open ("/dev/ptc", O_RDWR | O_NDELAY, 0); | 485 | *ptyv = emacs_open ("/dev/ptc", O_RDWR | O_NDELAY, 0); |
| @@ -3495,12 +3495,7 @@ Return non-nil iff we received any output before the timeout expired. */) | |||
| 3495 | seconds = -1; | 3495 | seconds = -1; |
| 3496 | } | 3496 | } |
| 3497 | else | 3497 | else |
| 3498 | { | 3498 | seconds = NILP (process) ? -1 : 0; |
| 3499 | if (NILP (process)) | ||
| 3500 | seconds = -1; | ||
| 3501 | else | ||
| 3502 | seconds = 0; | ||
| 3503 | } | ||
| 3504 | 3499 | ||
| 3505 | if (NILP (process)) | 3500 | if (NILP (process)) |
| 3506 | XSETFASTINT (process, 0); | 3501 | XSETFASTINT (process, 0); |