Skip to content

Commit 1c44543

Browse files
author
Ralph Castain
committed
If the ssh agent hasn't been given, then check for qrsh and friends
1 parent 397faad commit 1c44543

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

orte/mca/plm/rsh/plm_rsh_component.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,10 @@ static int rsh_component_query(mca_base_module_t **module, int *priority)
258258
char *tmp;
259259

260260
/* Check if we are under Grid Engine parallel environment by looking at several
261-
* environment variables. If so, setup the path and argv[0]. */
262-
if (NULL == mca_plm_rsh_component.agent) {
261+
* environment variables. If so, setup the path and argv[0].
262+
* Note that we allow the user to specify the launch agent
263+
* even if they are in a Grid Engine environment */
264+
if (0 == strcmp(mca_plm_rsh_component.agent, "ssh : rsh")) {
263265
if (!mca_plm_rsh_component.disable_qrsh &&
264266
NULL != getenv("SGE_ROOT") && NULL != getenv("ARC") &&
265267
NULL != getenv("PE_HOSTFILE") && NULL != getenv("JOB_ID")) {

0 commit comments

Comments
 (0)