From: Aleš Křenek Date: Mon, 30 Apr 2007 16:04:49 +0000 (+0000) Subject: handle errors from edg_wll_log_{proxy|direct}_connect X-Git-Tag: glite-lb-client_R_2_3_3_1~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=69c63c123c6a4a5701e080ff04792145fab1a705;p=jra1mw.git handle errors from edg_wll_log_{proxy|direct}_connect --- diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index 1acbd6d..92fc12a 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -139,7 +139,7 @@ int edg_wll_DoLogEventProxy( memset(&conn,0,sizeof(conn)); /* connect to lbproxy */ - if ((ret = edg_wll_log_proxy_connect(ctx,&conn)) < 0) { + if ((ret = edg_wll_log_proxy_connect(ctx,&conn))) { edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEventProxy(): edg_wll_log_proxy_write error"); goto edg_wll_DoLogEventProxy_end; } @@ -183,7 +183,7 @@ int edg_wll_DoLogEventDirect( memset(&conn,0,sizeof(conn)); /* connect to bkserver */ - if ((ret = edg_wll_log_direct_connect(ctx,&conn)) < 0) { + if ((ret = edg_wll_log_direct_connect(ctx,&conn))) { edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEventDirect(): edg_wll_log_direct_connect error"); goto edg_wll_DoLogEventDirect_end; } @@ -944,12 +944,12 @@ int edg_wll_RegisterJobProxy( (int) ctx->p_tmp_timeout.tv_sec, (int) ctx->p_tmp_timeout.tv_usec); #endif /* connect to bkserver */ - if ((ret = edg_wll_log_direct_connect(ctx,&con_bkserver)) < 0) { + if ((ret = edg_wll_log_direct_connect(ctx,&con_bkserver))) { edg_wll_UpdateError(ctx,EAGAIN,"edg_wll_RegisterJobProxy(): edg_wll_log_direct_connect error"); goto edg_wll_registerjobproxy_end; } /* connect to lbproxy */ - if ((ret = edg_wll_log_proxy_connect(ctx,&con_lbproxy)) < 0) { + if ((ret = edg_wll_log_proxy_connect(ctx,&con_lbproxy))) { edg_wll_UpdateError(ctx,EAGAIN,"edg_wll_RegisterJobProxy(): edg_wll_log_proxy_connect error"); goto edg_wll_registerjobproxy_end; }