@@ -588,7 +588,6 @@ static pmix_status_t server_spawn_fn(const pmix_proc_t *p,
588588 if (NULL != apps [n ].cmd ) {
589589 app -> cmd = strdup (apps [n ].cmd );
590590 }
591- app -> argc = apps [n ].argc ;
592591 if (NULL != apps [n ].argv ) {
593592 app -> argv = opal_argv_copy (apps [n ].argv );
594593 }
@@ -785,7 +784,6 @@ static pmix_status_t server_notify_event(pmix_status_t code,
785784
786785 /* convert the source */
787786 if (OPAL_SUCCESS != (rc = opal_convert_string_to_jobid (& src .jobid , source -> nspace ))) {
788- opal_output (0 , "FILE: %s LINE %d" , __FILE__ , __LINE__ );
789787 OBJ_RELEASE (opalcaddy );
790788 return pmix2x_convert_opalrc (rc );
791789 }
@@ -882,7 +880,6 @@ static pmix_status_t server_query(pmix_proc_t *proct,
882880
883881 /* convert the requestor */
884882 if (OPAL_SUCCESS != (rc = opal_convert_string_to_jobid (& requestor .jobid , proct -> nspace ))) {
885- opal_output (0 , "FILE: %s LINE %d" , __FILE__ , __LINE__ );
886883 OBJ_RELEASE (opalcaddy );
887884 return pmix2x_convert_opalrc (rc );
888885 }
@@ -923,13 +920,22 @@ static void toolcbfunc(int status,
923920 pmix2x_opalcaddy_t * opalcaddy = (pmix2x_opalcaddy_t * )cbdata ;
924921 pmix_status_t rc ;
925922 pmix_proc_t p ;
923+ opal_pmix2x_jobid_trkr_t * job ;
926924
927925 /* convert the status */
928926 rc = pmix2x_convert_opalrc (status );
929927
930- /* convert the process name */
931- (void )opal_snprintf_jobid (p .nspace , PMIX_MAX_NSLEN , proc .jobid );
932- p .rank = pmix2x_convert_opalrank (proc .vpid );
928+ memset (& p , 0 , sizeof (pmix_proc_t ));
929+ if (OPAL_SUCCESS == status ) {
930+ /* convert the process name */
931+ (void )opal_snprintf_jobid (p .nspace , PMIX_MAX_NSLEN , proc .jobid );
932+ p .rank = pmix2x_convert_opalrank (proc .vpid );
933+ /* store this job in our list of known nspaces */
934+ job = OBJ_NEW (opal_pmix2x_jobid_trkr_t );
935+ (void )strncpy (job -> nspace , p .nspace , PMIX_MAX_NSLEN );
936+ job -> jobid = proc .jobid ;
937+ opal_list_append (& mca_pmix_ext2x_component .jobids , & job -> super );
938+ }
933939
934940 /* pass it down */
935941 if (NULL != opalcaddy -> toolcbfunc ) {
@@ -997,7 +1003,6 @@ static void server_log(const pmix_proc_t *proct,
9971003
9981004 /* convert the requestor */
9991005 if (OPAL_SUCCESS != (rc = opal_convert_string_to_jobid (& requestor .jobid , proct -> nspace ))) {
1000- opal_output (0 , "FILE: %s LINE %d" , __FILE__ , __LINE__ );
10011006 OBJ_RELEASE (opalcaddy );
10021007 ret = pmix2x_convert_opalrc (rc );
10031008 if (NULL != cbfunc ) {
0 commit comments