Mercurial > emacs
changeset 51473:58061223557c
(allocate_pty): Revert part of the previous patch.
(Faccept_process_output): Simplify.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 04 Jun 2003 23:21:11 +0000 |
parents | d4a4f6efe0ad |
children | 0dbfd1fe2e91 |
files | src/process.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Wed Jun 04 23:15:29 2003 +0000 +++ b/src/process.c Wed Jun 04 23:21:11 2003 +0000 @@ -469,6 +469,7 @@ for (i = 0; i < 16; i++) #endif { + struct stat stb; /* Used in some PTY_OPEN. */ #ifdef PTY_NAME_SPRINTF PTY_NAME_SPRINTF #else @@ -479,7 +480,6 @@ PTY_OPEN; #else /* no PTY_OPEN */ { - struct stat stb; # ifdef IRIS /* Unusual IRIS code */ *ptyv = emacs_open ("/dev/ptc", O_RDWR | O_NDELAY, 0); @@ -3495,12 +3495,7 @@ seconds = -1; } else - { - if (NILP (process)) - seconds = -1; - else - seconds = 0; - } + seconds = NILP (process) ? -1 : 0; if (NILP (process)) XSETFASTINT (process, 0);