Handle multiple keyboard input descriptors.
authorRichard M. Stallman <rms@gnu.org>
Tue, 25 Oct 1994 09:48:44 +0000 (09:48 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 25 Oct 1994 09:48:44 +0000 (09:48 +0000)
commita69281ffda6967bd2e3901fd72b319bbd276c1fe
treef1417dfccdb413de4e9eebd8ec6a55379d4cf2ff
parent61bd0e9ccd7510ec0dc5641347caaf0c7714483e
Handle multiple keyboard input descriptors.
(non_keyboard_wait_mask): New variable.
(Fset_process_filter): Update non_keyboard_wait_mask
(create_process, Fopen_network_stream, deactivate_process):
(init_process, sigchld_handler): Likewise.
(wait_reading_process_input): Maybe use non_keyboard_wait_mask.
(add_keyboard_wait_descriptor):
Renamed from change_keyboard_wait_descriptor.
Clear the old descriptor's bit only the first call.
(delete_keyboard_wait_descriptor): New function.
(keyboard_bit_set): New function.
(wait_reading_process_input): Use keyboard_bit_set.
Start the loop over process descs from 0, and explicitly
ignore non-process input descs.
(init_process): Don't init keyboard_descriptor.
(keyboard_descriptor): Variable deleted.
(add_keyboard_wait_descriptor): Don't set keyboard_descriptor.
(delete_keyboard_wait_descriptor): New function.
src/process.c