comparison src/process.c @ 4057:2fe1488b503c

(wait_reading_process_input): If wait_for_cell, do call swallow_events and do_pending_window_change when appropriate.
author Richard M. Stallman <rms@gnu.org>
date Fri, 09 Jul 1993 21:42:51 +0000
parents d0c23febc08c
children 91a883c56382
comparison
equal deleted inserted replaced
4056:419e92a78e6f 4057:2fe1488b503c
1878 1878
1879 /* Check for keyboard input */ 1879 /* Check for keyboard input */
1880 /* If there is any, return immediately 1880 /* If there is any, return immediately
1881 to give it higher priority than subprocesses */ 1881 to give it higher priority than subprocesses */
1882 1882
1883 if (XINT (read_kbd) && detect_input_pending ()) 1883 if ((XINT (read_kbd) || wait_for_cell)
1884 && detect_input_pending ())
1884 { 1885 {
1885 swallow_events (); 1886 swallow_events ();
1886 if (detect_input_pending ()) 1887 if (detect_input_pending ())
1887 break; 1888 break;
1888 } 1889 }
1904 if (! wait_proc) 1905 if (! wait_proc)
1905 got_some_input |= nfds > 0; 1906 got_some_input |= nfds > 0;
1906 1907
1907 /* If checking input just got us a size-change event from X, 1908 /* If checking input just got us a size-change event from X,
1908 obey it now if we should. */ 1909 obey it now if we should. */
1909 if (XINT (read_kbd)) 1910 if (XINT (read_kbd) || wait_for_cell)
1910 do_pending_window_change (); 1911 do_pending_window_change ();
1911 1912
1912 /* Check for data from a process or a command channel */ 1913 /* Check for data from a process or a command channel */
1913 for (channel = FIRST_PROC_DESC; channel < MAXDESC; channel++) 1914 for (channel = FIRST_PROC_DESC; channel < MAXDESC; channel++)
1914 { 1915 {