1
1

* make the PTY setup code conform to the prefix rules. Duh.

This commit was SVN r5410.
Этот коммит содержится в:
Brian Barrett 2005-04-17 17:50:39 +00:00
родитель 41db769781
Коммит 5b12a357c7
3 изменённых файлов: 14 добавлений и 14 удалений

Просмотреть файл

@ -44,7 +44,7 @@
#include "mca/ns/ns.h"
int
iof_base_setup_prefork(mca_iof_base_io_conf_t *opts)
orte_iof_base_setup_prefork(orte_iof_base_io_conf_t *opts)
{
int ret;
@ -85,7 +85,7 @@ iof_base_setup_prefork(mca_iof_base_io_conf_t *opts)
int
iof_base_setup_child(mca_iof_base_io_conf_t *opts)
orte_iof_base_setup_child(orte_iof_base_io_conf_t *opts)
{
int ret;
@ -123,8 +123,8 @@ iof_base_setup_child(mca_iof_base_io_conf_t *opts)
int
iof_base_setup_parent(const orte_process_name_t* name,
mca_iof_base_io_conf_t *opts)
orte_iof_base_setup_parent(const orte_process_name_t* name,
orte_iof_base_io_conf_t *opts)
{
int ret;

Просмотреть файл

@ -25,14 +25,14 @@
#include "mca/ns/ns.h"
struct mca_iof_base_io_conf_t {
struct orte_iof_base_io_conf_t {
int p_stdin[2];
int p_stdout[2];
int p_stderr[2];
int usepty;
};
typedef struct mca_iof_base_io_conf_t mca_iof_base_io_conf_t;
typedef struct orte_iof_base_io_conf_t orte_iof_base_io_conf_t;
/**
@ -41,11 +41,11 @@ typedef struct mca_iof_base_io_conf_t mca_iof_base_io_conf_t;
* Do all stdio forwarding that must be done before fork() is called.
* This might include creating pipes or ptys or similar work.
*/
int iof_base_setup_prefork(mca_iof_base_io_conf_t *opts);
int orte_iof_base_setup_prefork(orte_iof_base_io_conf_t *opts);
int iof_base_setup_child(mca_iof_base_io_conf_t *opts);
int orte_iof_base_setup_child(orte_iof_base_io_conf_t *opts);
int iof_base_setup_parent(const orte_process_name_t* name,
mca_iof_base_io_conf_t *opts);
int orte_iof_base_setup_parent(const orte_process_name_t* name,
orte_iof_base_io_conf_t *opts);
#endif

Просмотреть файл

@ -117,14 +117,14 @@ static int orte_pls_fork_proc(
orte_vpid_t vpid_range)
{
pid_t pid;
mca_iof_base_io_conf_t opts;
orte_iof_base_io_conf_t opts;
int rc;
/* should pull this information from MPIRUN instead of going with
default */
opts.usepty = OMPI_ENABLE_PTY_SUPPORT;
rc = iof_base_setup_prefork(&opts);
rc = orte_iof_base_setup_prefork(&opts);
if (OMPI_SUCCESS != rc) {
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
return ORTE_ERR_OUT_OF_RESOURCE;
@ -178,7 +178,7 @@ static int orte_pls_fork_proc(
&environ_copy);
/* setup stdout/stderr */
iof_base_setup_child(&opts);
orte_iof_base_setup_child(&opts);
/* execute application */
new_env = ompi_environ_merge(context->env, environ_copy);
@ -211,7 +211,7 @@ static int orte_pls_fork_proc(
}
/* connect read end to IOF */
rc = iof_base_setup_parent(&proc->proc_name, &opts);
rc = orte_iof_base_setup_parent(&proc->proc_name, &opts);
if(ORTE_SUCCESS != rc) {
ORTE_ERROR_LOG(rc);
return rc;