summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/apr_signal.h14
-rw-r--r--threadproc/netware/signals.c10
-rw-r--r--threadproc/win32/signals.c10
3 files changed, 34 insertions, 0 deletions
diff --git a/include/apr_signal.h b/include/apr_signal.h
index ff885352f..173044bb7 100644
--- a/include/apr_signal.h
+++ b/include/apr_signal.h
@@ -85,6 +85,20 @@ APR_DECLARE(const char *) apr_signal_description_get(int signum);
*/
void apr_signal_init(apr_pool_t *pglobal);
+/**
+ * Block the delivery of a particular signal
+ * @param signum The signal number
+ * @return status
+ */
+APR_DECLARE(apr_status_t) apr_signal_block(int signum);
+
+/**
+ * Enable the delivery of a particular signal
+ * @param signum The signal number
+ * @return status
+ */
+APR_DECLARE(apr_status_t) apr_signal_unblock(int signum);
+
/** @} */
#ifdef __cplusplus
diff --git a/threadproc/netware/signals.c b/threadproc/netware/signals.c
index 3ef521003..dc94cf5f2 100644
--- a/threadproc/netware/signals.c
+++ b/threadproc/netware/signals.c
@@ -69,3 +69,13 @@ APR_DECLARE(apr_status_t) apr_setup_signal_thread(void)
return rv;
}
+
+APR_DECLARE(apr_status_t) apr_signal_block(int signum)
+{
+ return APR_SUCCESS;
+}
+
+APR_DECLARE(apr_status_t) apr_signal_unblock(int signum)
+{
+ return APR_SUCCESS;
+}
diff --git a/threadproc/win32/signals.c b/threadproc/win32/signals.c
index 6fab4fabf..14cd9232a 100644
--- a/threadproc/win32/signals.c
+++ b/threadproc/win32/signals.c
@@ -53,3 +53,13 @@ const char *apr_signal_description_get(int signum)
{
return "unknown signal (not supported)";
}
+
+APR_DECLARE(apr_status_t) apr_signal_block(int signum)
+{
+ return APR_SUCCESS;
+}
+
+APR_DECLARE(apr_status_t) apr_signal_unblock(int signum)
+{
+ return APR_SUCCESS;
+}