From 8ae32f67c2a75defa83ab776ac582647cf815f3d Mon Sep 17 00:00:00 2001 From: mp49 Date: Fri, 5 Mar 2010 16:58:04 +0000 Subject: [PATCH] Added epicsExit --- motorExApp/WithAsyn/WithAsynMain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/motorExApp/WithAsyn/WithAsynMain.c b/motorExApp/WithAsyn/WithAsynMain.c index f8857bf9..4ea1148f 100644 --- a/motorExApp/WithAsyn/WithAsynMain.c +++ b/motorExApp/WithAsyn/WithAsynMain.c @@ -7,15 +7,18 @@ #include #include +#include "epicsExit.h" #include "epicsThread.h" #include "iocsh.h" int main(int argc,char *argv[]) { - if(argc>=2) { + if (argc >= 2) + { iocsh(argv[1]); epicsThreadSleep(.2); } iocsh(NULL); + epicsExit(0); return(0); }