• Paul Eggert's avatar
    Avoid stdio in SIGINT handler · 564c84f4
    Paul Eggert authored
    * admin/merge-gnulib (GNULIB_MODULES): Add ignore-value.
    * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
    * lib/ignore-value.h: New file, from gnulib.
    * src/keyboard.c: Include it.
    (write_stdout, read_stdin): New functions.
    (handle_interrupt): Use them instead of printf and getchar,
    and avoid fflush when handling signals.
    564c84f4
keyboard.c 360 KB