openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/rsconf.c
static rsRetVal startInputModules(void)
{
    DEFiRet;
    cfgmodules_etry_t* node;

    node = module.GetNxtCnfType(runConf, NULL, eMOD_IN);
    while (node != NULL)
    {
        if (node->canActivate)
        {
            iRet = node->pMod->mod.im.willRun();
            node->canRun = (iRet == RS_RET_OK);
            if (!node->canRun)
            {
                DBGPRINTF("module %s will not run, iRet %d\n",
                          node->pMod->pszName, iRet);
            }
        }
        else
        {
            node->canRun = 0;
        }
        node = module.GetNxtCnfType(runConf, node, eMOD_IN);
    }

    return RS_RET_OK; /* intentional: we do not care about module errors */
}
/* Make the modules check if they are ready to start.
 */
Make the modules check if they are ready to start.
Make the modules check if they are ready to start .
static rsRetVal startInputModules(void)
{
    DEFiRet;
    cfgmodules_etry_t* node;
    node = module.GetNxtCnfType(runConf, NULL, eMOD_IN);
    while (node != NULL)
    {
        if (node->canActivate)
        {
            iRet = node->pMod->mod.im.willRun();
            node->canRun = (iRet == RS_RET_OK);
            if (!node->canRun)
            {
                DBGPRINTF("module %s will not run, iRet %d\n",
                          node->pMod->pszName, iRet);
            }
        }
        else
        {
            node->canRun = 0;
        }
        node = module.GetNxtCnfType(runConf, node, eMOD_IN);
    }
    return RS_RET_OK; 
}
static rsRetVal startInputModules ( void ) { DEFiRet ; cfgmodules_etry_t * node ; node = module . GetNxtCnfType ( runConf , NULL , eMOD_IN ) ; while ( node != NULL ) { if ( node -> canActivate ) { iRet = node -> pMod -> mod . im . willRun ( ) ; node -> canRun = ( iRet == RS_RET_OK ) ; if ( ! node -> canRun ) { DBGPRINTF ( " \n " , node -> pMod -> pszName , iRet ) ; } } else { node -> canRun = 0 ; } node = module . GetNxtCnfType ( runConf , node , eMOD_IN ) ; } return RS_RET_OK ; }
Make the modules check if they are ready to start.
Make the modules check if they are ready to start .
/* intentional: we do not care about module errors */