initialProcess is now called before interruptAccept
This commit is contained in:
@@ -50,8 +50,8 @@ typedef enum {
|
||||
initHookAfterInitDatabase,
|
||||
initHookAfterFinishDevSup,
|
||||
initHookAfterScanInit,
|
||||
initHookAfterInterruptAccept,
|
||||
initHookAfterInitialProcess,
|
||||
initHookAfterInterruptAccept,
|
||||
initHookAtEnd
|
||||
}initHookState;
|
||||
|
||||
|
||||
@@ -217,12 +217,6 @@ int iocInit(char * pResourceFilename)
|
||||
(void)taskDelay(sysClkRateGet()/2);
|
||||
|
||||
if (pinitHooks) (*pinitHooks)(initHookAfterScanInit);
|
||||
|
||||
/* Enable scan tasks and some driver support functions. */
|
||||
interruptAccept=TRUE;
|
||||
|
||||
if (pinitHooks) (*pinitHooks)(initHookAfterInterruptAccept);
|
||||
|
||||
/*
|
||||
* Process all records that have their "process at initialization"
|
||||
* field set (pini).
|
||||
@@ -233,6 +227,12 @@ int iocInit(char * pResourceFilename)
|
||||
|
||||
if (pinitHooks) (*pinitHooks)(initHookAfterInitialProcess);
|
||||
|
||||
/* Enable scan tasks and some driver support functions. */
|
||||
interruptAccept=TRUE;
|
||||
|
||||
if (pinitHooks) (*pinitHooks)(initHookAfterInterruptAccept);
|
||||
|
||||
|
||||
/* Start up CA server */
|
||||
rsrv_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user