1
1

* move ioexecvp from pcm base to the rsh pcm. There is a bunch of windows

unfriendly code in there and it is only used in the rsh pcm

This commit was SVN r3150.
Этот коммит содержится в:
Brian Barrett 2004-10-14 23:37:42 +00:00
родитель 08ec73a546
Коммит 7f347651ae
6 изменённых файлов: 7 добавлений и 7 удалений

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

@ -22,7 +22,6 @@ libmca_pcm_base_la_SOURCES = \
$(headers) \
pcm_base_close.c \
pcm_base_comm.c \
pcm_base_ioexecvp.c \
pcm_base_job_track.c \
pcm_base_open.c \
pcm_base_select.c \

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

@ -48,9 +48,6 @@ extern "C" {
*/
int mca_pcm_base_build_base_env(char **in_env, int *envc, char ***out_envp);
int mca_pcm_base_ioexecvp(char **cmdv, int showout, char *outbuff,
int outbuffsize, int stderr_is_err);
char* mca_pcm_base_get_username(mca_llm_base_hostfile_node_t *node);
/**

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

@ -18,6 +18,7 @@ sources = \
pcm_rsh.h \
pcm_rsh_allocate.c \
pcm_rsh_component.c \
pcm_rsh_ioexecvp.c \
pcm_rsh_kill.c \
pcm_rsh_spawn.c

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

@ -49,6 +49,9 @@ extern "C" {
mca_ns_base_jobid_t jobid,
ompi_list_t *nodelist);
int mca_pcm_rsh_ioexecvp(char **cmdv, int showout, char *outbuff,
int outbuffsize, int stderr_is_err);
struct mca_pcm_rsh_module_t {
mca_pcm_base_module_t super;

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

@ -27,7 +27,7 @@
#include <sys/param.h>
#include "include/constants.h"
#include "mca/pcm/base/base.h"
#include "mca/pcm/rsh/pcm_rsh.h"
#include "util/argv.h"
/*
@ -43,7 +43,7 @@
* Returns - 0 or OMPI_ERROR
*/
int
mca_pcm_base_ioexecvp(char **cmdv, int showout, char *outbuff,
mca_pcm_rsh_ioexecvp(char **cmdv, int showout, char *outbuff,
int outbuffsize, int stderr_is_err)
{
int kidstdout[2]; /* child stdout pipe */

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

@ -236,7 +236,7 @@ internal_need_profile(mca_pcm_rsh_module_t *me,
cmd0 = strdup(cmdv[0]);
shellpath[sizeof(shellpath) - 1] = '\0';
if (mca_pcm_base_ioexecvp(cmdv, 0, shellpath,
if (mca_pcm_rsh_ioexecvp(cmdv, 0, shellpath,
sizeof(shellpath) - 1,
stderr_is_error)) {
if (errno == EFAULT) {