diff --git a/documentation/ConvertingR3.14.6AppsToR3.14.7.html b/documentation/ConvertingR3.14.6AppsToR3.14.7.html index ba9d78b06..e6b9c248d 100644 --- a/documentation/ConvertingR3.14.6AppsToR3.14.7.html +++ b/documentation/ConvertingR3.14.6AppsToR3.14.7.html @@ -22,22 +22,24 @@ builds with release R3.14.7.
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); - ++