From 395ccb4e9581ac7a54c8666371275d2ae90fcca0 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Thu, 28 Nov 2013 13:00:55 +0000 Subject: - raise a signal after receiving it from the control pipe by calling the respective callback registered with GNUNET_SIGNAL_handler_install(). --- src/include/gnunet_signal_lib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include/gnunet_signal_lib.h') diff --git a/src/include/gnunet_signal_lib.h b/src/include/gnunet_signal_lib.h index 04037b4ca..32f8963e0 100644 --- a/src/include/gnunet_signal_lib.h +++ b/src/include/gnunet_signal_lib.h @@ -72,6 +72,17 @@ void GNUNET_SIGNAL_handler_uninstall (struct GNUNET_SIGNAL_Context *ctx); +/** + * Raise the given signal by calling the installed signal handlers. This will + * not use the @em raise() system call but only calls the handlers registered + * through GNUNET_SIGNAL_handler_install(). + * + * @param sig the signal to raise + */ +void +GNUNET_SIGNAL_raise (const int sig); + + #if 0 /* keep Emacsens' auto-indent happy */ { #endif -- cgit v1.2.3