From 13aaf8ef1b8b8e1bd01fb30cda34cfe6fd08c9f3 Mon Sep 17 00:00:00 2001
From: "Janet B. Anderson"
To make the run-time code reentrant, thus allowing more than one instance of the state program to run on an IOC add the line -"_SNCFLAGS += +r" to the Makefile, replacing with the + <name>_SNCFLAGS += +r"to the Makefile, replacing <name> with the state notation language code file name.
Code that calls exit or atexit should change these calls to epicsExit +
+Code that calls exit or atexit should change these calls to epicsExit and epicsAtExit. epicsAtexit was created because of problems on vxWorks and windows with the implementation of atexit, -i.e. neither of these systems implements exit and atexit according to the POSIX standard. - +i.e. neither of these systems implements exit and atexit according to the POSIX standard. +
Add the following lines +-+#include "epicsExit.h" - epicsExit(0); - ++