Arrange to return to BSP (and likely then to bootstrap ROM) when iocsh terminates.

This commit is contained in:
W. Eric Norum
2005-09-19 21:54:30 +00:00
parent 0376ee4455
commit 3620fc6de2

View File

@@ -587,5 +587,6 @@ Init (rtems_task_argument ignored)
epicsEnvSet ("IOC_STARTUP_SCRIPT", argv[1]);
i = main ((sizeof argv / sizeof argv[0]) - 1, argv);
printf ("***** IOC application terminating *****\n");
exit (i);
epicsThreadSleep(1.0);
rtems_shutdown_executive(0);
}