Loading os/netware/util_nw.c +23 −17 Original line number Diff line number Diff line Loading @@ -16,9 +16,14 @@ #include "httpd.h" #include "http_log.h" #include "ap_mpm.h" #include <netware.h> #include <nks\netware.h> #include <nks/netware.h> #include <nks/vm.h> void ap_down_server_cb(void *, void *); void ap_dummy_cb(void *, void *); void ap_cb_destroy(void *); int nlmUnloadSignaled(int wait); event_handle_t eh; Loading @@ -40,23 +45,23 @@ int _NonAppCheckUnload( void ) return nlmUnloadSignaled(1); } // down server event callback void ap_down_server_cb(void *, void *) /* down server event callback */ void ap_down_server_cb(void *a, void *b) { nlmUnloadSignaled(0); return; } // Required place holder event callback void ap_dummy_cb(void *, void *) /* Required place holder event callback */ void ap_dummy_cb(void *a, void *b) { return; } // destroy callback resources void ap_cb_destroy(void *) /* destroy callback resources */ void ap_cb_destroy(void *a) { // cleanup down event notification /* cleanup down event notification */ UnRegisterEventNotification(eh); NX_UNWRAP_INTERFACE(ref); NX_UNWRAP_INTERFACE(dum); Loading Loading @@ -88,7 +93,7 @@ int _NonAppStart #pragma unused(messageCount) #pragma unused(messages) // register for down server event /* register for down server event */ rtag_t rt = AllocateResourceTag(NLMHandle, "Apache2 Down Server Callback", EventSignature); Loading @@ -98,8 +103,9 @@ int _NonAppStart EVENT_PRIORITY_APPLICATION, ref, dum, NULL); // clean-up /* clean-up */ NXVmRegisterExitHandler(ap_cb_destroy, NULL); return 0; } Loading
os/netware/util_nw.c +23 −17 Original line number Diff line number Diff line Loading @@ -16,9 +16,14 @@ #include "httpd.h" #include "http_log.h" #include "ap_mpm.h" #include <netware.h> #include <nks\netware.h> #include <nks/netware.h> #include <nks/vm.h> void ap_down_server_cb(void *, void *); void ap_dummy_cb(void *, void *); void ap_cb_destroy(void *); int nlmUnloadSignaled(int wait); event_handle_t eh; Loading @@ -40,23 +45,23 @@ int _NonAppCheckUnload( void ) return nlmUnloadSignaled(1); } // down server event callback void ap_down_server_cb(void *, void *) /* down server event callback */ void ap_down_server_cb(void *a, void *b) { nlmUnloadSignaled(0); return; } // Required place holder event callback void ap_dummy_cb(void *, void *) /* Required place holder event callback */ void ap_dummy_cb(void *a, void *b) { return; } // destroy callback resources void ap_cb_destroy(void *) /* destroy callback resources */ void ap_cb_destroy(void *a) { // cleanup down event notification /* cleanup down event notification */ UnRegisterEventNotification(eh); NX_UNWRAP_INTERFACE(ref); NX_UNWRAP_INTERFACE(dum); Loading Loading @@ -88,7 +93,7 @@ int _NonAppStart #pragma unused(messageCount) #pragma unused(messages) // register for down server event /* register for down server event */ rtag_t rt = AllocateResourceTag(NLMHandle, "Apache2 Down Server Callback", EventSignature); Loading @@ -98,8 +103,9 @@ int _NonAppStart EVENT_PRIORITY_APPLICATION, ref, dum, NULL); // clean-up /* clean-up */ NXVmRegisterExitHandler(ap_cb_destroy, NULL); return 0; }