HAVE_SYS_TYPES_H require an ifdef.
This commit was SVN r15024.
Этот коммит содержится в:
родитель
432185d617
Коммит
9e89abbd57
@ -26,7 +26,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#if HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_WAIT_H
|
#ifdef HAVE_SYS_WAIT_H
|
||||||
@ -266,8 +266,8 @@ int orte_odls_default_get_add_procs_data(orte_gpr_notify_data_t **data,
|
|||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool odls_default_child_died(pid_t pid, unsigned int timeout,
|
||||||
static bool odls_default_child_died(pid_t pid, unsigned int timeout, int *exit_status)
|
int *exit_status)
|
||||||
{
|
{
|
||||||
time_t end;
|
time_t end;
|
||||||
pid_t ret;
|
pid_t ret;
|
||||||
@ -832,7 +832,6 @@ static int odls_default_fork_local_proc(
|
|||||||
child->local_rank, child->num_procs,
|
child->local_rank, child->num_procs,
|
||||||
&environ_copy);
|
&environ_copy);
|
||||||
|
|
||||||
|
|
||||||
/* close all file descriptors w/ exception of stdin/stdout/stderr */
|
/* close all file descriptors w/ exception of stdin/stdout/stderr */
|
||||||
for(fd=3; fd<fdmax; fd++)
|
for(fd=3; fd<fdmax; fd++)
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user