Mercurial > gnulib
diff lib/fatal-signal.h @ 40238:3ac749aa0041
fatal-signal: Pass the signal number to the action.
* lib/fatal-signal.h (at_fatal_signal): Change the signature.
* lib/fatal-signal.c (action_t): Take the signal number as parameter.
(fatal_signal_handler): Pass the signal number to the action.
* lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
signal number as parameter.
(create_temp_dir): Update.
* lib/wait-process.c (cleanup_slaves_action): New function.
(register_slave_subprocess): Update at_fatal_signal invocation.
* NEWS: Mention the change.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 16 Mar 2019 22:56:21 +0100 |
parents | b1386ce84ff5 |
children |
line wrap: on
line diff
--- a/lib/fatal-signal.h Sat Mar 16 17:48:06 2019 +0100 +++ b/lib/fatal-signal.h Sat Mar 16 22:56:21 2019 +0100 @@ -51,7 +51,7 @@ The cleanup function is executed asynchronously. It is unspecified whether during its execution the catchable fatal signals are blocked or not. */ -extern void at_fatal_signal (void (*function) (void)); +extern void at_fatal_signal (void (*function) (int sig)); /* Sometimes it is necessary to block the usually fatal signals while the