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=4469ea182b00fd6ceba300f053d290540648951b;p=OpenSRF.git added an exmple exit handler git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_0@818 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/c-apps/osrf_math.c b/src/c-apps/osrf_math.c index ce5e0ae..63d168a 100644 --- a/src/c-apps/osrf_math.c +++ b/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 */