• Paul Eggert's avatar
    * process.c: Fix minor off-by-one issues in descriptor counts. · 2878ba7e
    Paul Eggert authored
    This shouldn't fix any real bugs, but it cleans up the code a bit.
    (max_process_desc, max_input_desc): -1, not 0, means none.
    All uses changed.
    (delete_input_desc): New function.
    (delete_write_fd, delete_keyboard_wait_descriptor): Use it.
    (deactivate_process): Scan backwards when recomuting max_process_desc;
    that should be faster.
    (init_process_emacs): Initialize max_input_desc.
    2878ba7e
ChangeLog 146 KB