comparison src/process.c @ 83019:82c3b4da43ca

Merged in changes from CVS HEAD Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-33 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-34 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-35 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-36 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-37 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-38 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-39 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-40 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-41 Make fringe-drawing stuff compile without a window-system * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-42 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-43 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-44 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-45 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-46 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-47 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-48 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-49 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-50 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-59
author Karoly Lorentey <lorentey@elte.hu>
date Thu, 22 Jan 2004 15:37:19 +0000
parents e77d1a63471b 291acfb4bf40
children c66ebcc29777
comparison
equal deleted inserted replaced
83018:1465425fe2d3 83019:82c3b4da43ca
1 /* Asynchronous subprocess control for GNU Emacs. 1 /* Asynchronous subprocess control for GNU Emacs.
2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 96, 98, 1999, 2 Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 96, 98, 1999,
3 2001, 2002, 2003 Free Software Foundation, Inc. 3 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4 4
5 This file is part of GNU Emacs. 5 This file is part of GNU Emacs.
6 6
7 GNU Emacs is free software; you can redistribute it and/or modify 7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
4078 /* If calling from keyboard input, do not quit 4078 /* If calling from keyboard input, do not quit
4079 since we want to return C-g as an input character. 4079 since we want to return C-g as an input character.
4080 Otherwise, do pending quit if requested. */ 4080 Otherwise, do pending quit if requested. */
4081 if (XINT (read_kbd) >= 0) 4081 if (XINT (read_kbd) >= 0)
4082 QUIT; 4082 QUIT;
4083 #ifdef SYNC_INPUT
4084 else if (interrupt_input_pending)
4085 handle_async_input ();
4086 #endif
4083 4087
4084 /* Exit now if the cell we're waiting for became non-nil. */ 4088 /* Exit now if the cell we're waiting for became non-nil. */
4085 if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell))) 4089 if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell)))
4086 break; 4090 break;
4087 4091
4294 for (channel = 0; check_delay > 0 && channel <= max_process_desc; channel++) 4298 for (channel = 0; check_delay > 0 && channel <= max_process_desc; channel++)
4295 { 4299 {
4296 proc = chan_process[channel]; 4300 proc = chan_process[channel];
4297 if (NILP (proc)) 4301 if (NILP (proc))
4298 continue; 4302 continue;
4299 if (XPROCESS (proc)->read_output_delay > 0) 4303 if (XINT (XPROCESS (proc)->read_output_delay) > 0)
4300 { 4304 {
4301 check_delay--; 4305 check_delay--;
4302 if (NILP (XPROCESS (proc)->read_output_skip)) 4306 if (NILP (XPROCESS (proc)->read_output_skip))
4303 continue; 4307 continue;
4304 FD_CLR (channel, &Available); 4308 FD_CLR (channel, &Available);