From: Jan Pospíšil Date: Tue, 10 Jan 2006 22:16:15 +0000 (+0000) Subject: RegisterSubjobs now should report en error if one of the subjobs fails to register. X-Git-Tag: after_merge_from_branch_1_1_0_RC15~7 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3e4b2f765a1ead8c6cc8cbb75746a6ee551b9ce7;p=jra1mw.git RegisterSubjobs now should report en error if one of the subjobs fails to register. --- diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index a3d3c97..0922d0b 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -904,12 +904,15 @@ int edg_wll_RegisterSubjobs( while (*pjdl != NULL) { if (edg_wll_RegisterSubjob(ctx, *psubjob, EDG_WLL_REGJOB_SIMPLE, *pjdl, - ns, parent, 0, NULL, NULL) != 0) break; + ns, parent, 0, NULL, NULL) != 0) { + goto edg_wll_registersubjobs_end; + } pjdl++; psubjob++; } edg_wll_SetLoggingJob(ctx, oldctxjob, oldctxseq, EDG_WLL_SEQ_NORMAL); +edg_wll_registersubjobs_end: return edg_wll_Error(ctx, NULL, NULL); } @@ -933,12 +936,15 @@ int edg_wll_RegisterSubjobsProxy( while (*pjdl != NULL) { if (edg_wll_RegisterSubjobProxy(ctx, *psubjob, EDG_WLL_REGJOB_SIMPLE, *pjdl, - ns, parent, 0, NULL, NULL) != 0) break; + ns, parent, 0, NULL, NULL) != 0) { + goto edg_wll_registersubjobsproxy_end; + } pjdl++; psubjob++; } edg_wll_SetLoggingJobProxy(ctx, oldctxjob, oldctxseq, NULL, EDG_WLL_SEQ_NORMAL); +edg_wll_registersubjobsproxy_end: return edg_wll_Error(ctx, NULL, NULL); }