fix a small 64bit problem....
This commit was SVN r6814.
Этот коммит содержится в:
родитель
22c7f2b3e0
Коммит
311efa5bcc
@ -323,7 +323,7 @@ static void orte_pls_bproc_waitpid_daemon_cb(pid_t wpid, int status, void *data)
|
|||||||
int rc;
|
int rc;
|
||||||
int src[4] = {-1, -1};
|
int src[4] = {-1, -1};
|
||||||
src[2] = wpid;
|
src[2] = wpid;
|
||||||
src[3] = (int) data;
|
src[3] = *(int*)data;
|
||||||
if(WIFSIGNALED(status)) {
|
if(WIFSIGNALED(status)) {
|
||||||
src[1] = WTERMSIG(status);
|
src[1] = WTERMSIG(status);
|
||||||
}
|
}
|
||||||
@ -630,7 +630,7 @@ static int orte_pls_bproc_launch_daemons(orte_cellid_t cellid, char *** envp,
|
|||||||
}
|
}
|
||||||
free(param);
|
free(param);
|
||||||
rc = orte_wait_cb(pids[i], orte_pls_bproc_waitpid_daemon_cb,
|
rc = orte_wait_cb(pids[i], orte_pls_bproc_waitpid_daemon_cb,
|
||||||
(int *) daemon_list[i]);
|
&daemon_list[i]);
|
||||||
if(ORTE_SUCCESS != rc) {
|
if(ORTE_SUCCESS != rc) {
|
||||||
ORTE_ERROR_LOG(rc);
|
ORTE_ERROR_LOG(rc);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -649,9 +649,6 @@ cleanup:
|
|||||||
if(NULL != orted_path) {
|
if(NULL != orted_path) {
|
||||||
free(orted_path);
|
free(orted_path);
|
||||||
}
|
}
|
||||||
if(NULL != daemon_list) {
|
|
||||||
free(daemon_list);
|
|
||||||
}
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user