--- libaitrpc/src/srv.c 2012/05/15 16:06:13 1.9.2.4 +++ libaitrpc/src/srv.c 2012/05/15 16:10:58 1.9.2.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: srv.c,v 1.9.2.4 2012/05/15 16:06:13 misho Exp $ +* $Id: srv.c,v 1.9.2.5 2012/05/15 16:10:58 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -881,7 +881,6 @@ rpc_srv_loopServer(rpc_srv_t * __restrict srv) } -#if 0 /* * rpc_srv_execCall() Execute registered call from RPC server * @@ -903,7 +902,7 @@ rpc_srv_execCall(rpc_func_t * __restrict call, struct return -1; } - dl = dlopen(AIT_ADDR(&call->func_file), RTLD_NOW); + dl = dlopen(AIT_ADDR(&call->func_file), RTLD_LAZY | RTLD_GLOBAL); if (!dl) { rpc_SetErr(ENOENT, "Can`t attach module %s!", dlerror()); return -1; @@ -920,4 +919,3 @@ rpc_srv_execCall(rpc_func_t * __restrict call, struct dlclose(dl); return ret; } -#endif