• Paul Eggert's avatar
    Avoid stdio in SIGINT handler · e79b06e6
    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.
    e79b06e6
keyboard.c 359 KB