Syncing softMain.cpp with epics-base
This commit is contained in:
@ -136,6 +136,7 @@ int main(int argc, char *argv[])
|
|||||||
xmacro;
|
xmacro;
|
||||||
bool interactive = true;
|
bool interactive = true;
|
||||||
bool loadedDb = false;
|
bool loadedDb = false;
|
||||||
|
bool ranScript = false;
|
||||||
|
|
||||||
#ifdef USE_EXECDIR
|
#ifdef USE_EXECDIR
|
||||||
// attempt to compute relative paths
|
// attempt to compute relative paths
|
||||||
@ -240,7 +241,7 @@ int main(int argc, char *argv[])
|
|||||||
std::cout<<"# End "<<argv[optind]<<"\n";
|
std::cout<<"# End "<<argv[optind]<<"\n";
|
||||||
|
|
||||||
epicsThreadSleep(0.2);
|
epicsThreadSleep(0.2);
|
||||||
loadedDb = true; /* Give it the benefit of the doubt... */
|
ranScript = true; /* Assume the script has done any necessary initialization */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadedDb) {
|
if (loadedDb) {
|
||||||
@ -259,7 +260,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (loadedDb) {
|
if (loadedDb || ranScript) {
|
||||||
epicsThreadExitMain();
|
epicsThreadExitMain();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user