From: erickson Date: Mon, 5 Feb 2007 19:16:04 +0000 (+0000) Subject: added an exmple exit handler X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=df8d17da611b0844c5b3c751dc59e28b140cb222;p=Evergreen.git added an exmple exit handler git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6882 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/OpenSRF/src/c-apps/osrf_math.c b/OpenSRF/src/c-apps/osrf_math.c index ce5e0ae55b..63d168ac11 100644 --- a/OpenSRF/src/c-apps/osrf_math.c +++ b/OpenSRF/src/c-apps/osrf_math.c @@ -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 */