comparison modules/fatal-signal @ 10230:54813304edd2

Use sigaction module rather than signal(). * modules/c-stack (Depends-on): Add sigaction. * modules/fatal-signal (Depends-on): Likewise. * modules/nanosleep (Depends-on): Likewise. * modules/sigprocmask (Files): Add sig-handler.h. * modules/sigaction (Files): Likewise. * lib/sig-handler.h (get_handler): New file, suggested by Paul Eggert. * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions. (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal. * lib/fatal-signal.c (uninstall_handlers, install_handlers) (init_fatal_signals): Likewise. * lib/nanosleep.c (rpl_nanosleep): Likewise. (siginterrupt): Delete fallback. * lib/sigprocmask.c (handler_t): Delete. (old_handlers): Use sa_handler_t instead. * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for siginterrupt. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 21 Jun 2008 07:08:49 -0600
parents 9f848a3cc15a
children 1f14c6dd175d
comparison
equal deleted inserted replaced
10229:29502a2dd08a 10230:54813304edd2
9 9
10 Depends-on: 10 Depends-on:
11 xalloc 11 xalloc
12 stdbool 12 stdbool
13 unistd 13 unistd
14 sigaction
14 sigprocmask 15 sigprocmask
15 raise 16 raise
16 17
17 configure.ac: 18 configure.ac:
18 gl_FATAL_SIGNAL 19 gl_FATAL_SIGNAL