summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-01-03 15:00:49 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-01-03 15:04:07 -0800
commite79b06e6def82fab56a153085bff8223876d5908 (patch)
tree3fa986746456718707c735b0abda48c092945479 /m4
parent861022ff5f7b8d6ab53c726e009208eadf4ecd41 (diff)
downloademacs-e79b06e6def82fab56a153085bff8223876d5908.tar.gz
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.
Diffstat (limited to 'm4')
-rw-r--r--m4/gnulib-comp.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
index 69920a84afd..27ca70a0d09 100644
--- a/m4/gnulib-comp.m4
+++ b/m4/gnulib-comp.m4
@@ -91,6 +91,7 @@ AC_DEFUN([gl_EARLY],
# Code from module gettimeofday:
# Code from module gitlog-to-changelog:
# Code from module group-member:
+ # Code from module ignore-value:
# Code from module include_next:
# Code from module intprops:
# Code from module inttypes-incomplete:
@@ -905,6 +906,7 @@ AC_DEFUN([gl_FILE_LIST], [
lib/gettimeofday.c
lib/gl_openssl.h
lib/group-member.c
+ lib/ignore-value.h
lib/intprops.h
lib/inttypes.in.h
lib/lstat.c