summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2003-01-10 15:43:23 +0000
committerBradley Nicholes <bnicholes@apache.org>2003-01-10 15:43:23 +0000
commit85a2ec41c66038dcf6c35bbf67253004840bf767 (patch)
tree914e48739b1703e03f2f3658d4d8bfb915442e16 /os
parent8ff4339735780f61ab3dcba9394fa4b8a293c512 (diff)
downloadhttpd-85a2ec41c66038dcf6c35bbf67253004840bf767.tar.gz
Added a required parameter to RegisterForEventNotification() to allow the
function to be called in protected address space. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98237 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os')
-rw-r--r--os/netware/util_nw.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/os/netware/util_nw.c b/os/netware/util_nw.c
index a9a411885d..c934dd54e2 100644
--- a/os/netware/util_nw.c
+++ b/os/netware/util_nw.c
@@ -65,6 +65,7 @@
int nlmUnloadSignaled(int wait);
event_handle_t eh;
Warn_t ref;
+Report_t dum;
AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
const request_rec *r,
@@ -82,18 +83,25 @@ int _NonAppCheckUnload( void )
}
// down server event callback
-void ap_down_server_cb(void *, void *)
+void ap_down_server_cb(void *, void *, void*)
{
nlmUnloadSignaled(0);
return;
}
+// Required place holder event callback
+void ap_dummy_cb(void *, void *)
+{
+ return;
+}
+
// destroy callback resources
void ap_cb_destroy(void *)
{
// cleanup down event notification
UnRegisterEventNotification(eh);
NX_UNWRAP_INTERFACE(ref);
+ NX_UNWRAP_INTERFACE(dum);
}
int _NonAppStart
@@ -126,10 +134,11 @@ int _NonAppStart
rtag_t rt = AllocateResourceTag(NLMHandle, "Apache2 Down Server Callback",
EventSignature);
- NX_WRAP_INTERFACE((void *)ap_down_server_cb, 2, (void **)&ref);
+ NX_WRAP_INTERFACE((void *)ap_down_server_cb, 3, (void **)&ref);
+ NX_WRAP_INTERFACE((void *)ap_dummy_cb, 2, (void **)&dum);
eh = RegisterForEventNotification(rt, EVENT_DOWN_SERVER,
EVENT_PRIORITY_APPLICATION,
- ref, NULL, NULL);
+ ref, dum, NULL);
// clean-up
NXVmRegisterExitHandler(ap_cb_destroy, NULL);