Set PVAS_SERVER_PORT

This commit is contained in:
Michael Davidsaver
2022-10-27 16:19:22 -04:00
committed by Andrew Johnson
parent 55ab0fd3b8
commit cf483d664d

View File

@ -52,6 +52,12 @@ void startitup() {
// from environment
.push_env()
.build()));
unsigned short port = the_server->getServerPort();
char pbuf[7];
epicsSnprintf(pbuf, sizeof(pbuf)-1, "%u", port);
pbuf[sizeof(pbuf)-1] = '\0';
epicsEnvSet("PVAS_SERVER_PORT", pbuf);
}
void startPVAServer(const char *names)