Skip to content

Commit

Permalink
Add RSRV_SERVER_PORT and PVAS_SERVER_PORT to default list of env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanford committed Oct 31, 2022
1 parent 252c053 commit 58870d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/castApp/src/dbcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ static const char* default_envs[] =
"EPICS_CA_ADDR_LIST",
"EPICS_CA_AUTO_ADDR_LIST",
"EPICS_CA_MAX_ARRAY_BYTES",
"RSRV_SERVER_PORT",

/* PVA related */
"PVAS_SERVER_PORT",

/* Common */
"PWD",
Expand Down Expand Up @@ -69,10 +73,8 @@ static int pushEnv(caster_t *caster)
casterMsg(caster, "Error sending env %s", default_envs[i]);
}

printf("Printing env vars\n");
for (i = 0; !ret && caster->extra_envs[i]; i++) {
const char *val = getenv(caster->extra_envs[i]);
printf("%s = %s\n", caster->extra_envs[i], val);
if (val && val[0] != '\0')
ret = casterSendInfo(caster, 0, caster->extra_envs[i], val);
if (ret)
Expand Down

0 comments on commit 58870d2

Please sign in to comment.