+
+
+/**
+ * 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)
+{
+ struct GNUNET_SIGNAL_Context *ctx;
+
+ for (ctx = sc_head; NULL != ctx; ctx = ctx->next)
+ {
+ if (sig != ctx->sig)
+ continue;
+ if (NULL == ctx->method)
+ continue;
+ ctx->method ();
+ }
+}