]> git.eshelyaron.com Git - emacs.git/commit
Avoid stdio in SIGINT handler
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Jan 2016 23:00:49 +0000 (15:00 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Jan 2016 23:04:07 +0000 (15:04 -0800)
commite79b06e6def82fab56a153085bff8223876d5908
tree3fa986746456718707c735b0abda48c092945479
parent861022ff5f7b8d6ab53c726e009208eadf4ecd41
Avoid stdio in SIGINT handler

* 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.
admin/merge-gnulib
lib/gnulib.mk
lib/ignore-value.h [new file with mode: 0644]
m4/gnulib-comp.m4
src/keyboard.c