epicsExit: add epicsExitLater() to trigger process exit without blocking

This commit is contained in:
Michael Davidsaver
2014-11-13 11:58:35 -05:00
parent d35780888a
commit 924350b362
3 changed files with 26 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ const char *exit_db = EXIT_FILE;
static void exitSubroutine(subRecord *precord) {
epicsExit((precord->a == 0.0) ? EXIT_SUCCESS : EXIT_FAILURE);
epicsExitLater((precord->a == 0.0) ? EXIT_SUCCESS : EXIT_FAILURE);
}
static void usage(int status) {