added an exmple exit handler
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Feb 2007 19:16:04 +0000 (19:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 5 Feb 2007 19:16:04 +0000 (19:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6882 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/c-apps/osrf_math.c

index ce5e0ae..63d168a 100644 (file)
@@ -7,6 +7,7 @@
 
 int osrfAppInitialize();
 int osrfAppChildInit();
+void osrfAppChildExit();
 int osrfMathRun( osrfMethodContext* );
 
 
@@ -41,10 +42,17 @@ int osrfAppInitialize() {
        return 0;
 }
 
+/* called when this process is just coming into existence */
 int osrfAppChildInit() {
        return 0;
 }
 
+/* called when this process is about to exit */
+void osrfAppChildExit() {
+   osrfLogDebug(OSRF_LOG_MARK, "Child is exiting...");
+}
+
+
 int osrfMathRun( osrfMethodContext* ctx ) {
 
        OSRF_METHOD_VERIFY_CONTEXT(ctx); /* see osrf_application.h */