]> code.delx.au - gnu-emacs/commit
Avoid stdio in SIGINT handler
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Jan 2016 23:00:49 +0000 (15:00 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 19 Jan 2016 06:30:28 +0000 (22:30 -0800)
commit564c84f4b12482aefe86539d2471607565c3ee7c
tree21512d3abcc8b5ee787230c9ad3752581488ce37
parent9e0fc619541f57b71711e8855d2b19c942b107e6
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