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 runInputModules(void)
{
    cfgmodules_etry_t* node;
    int bNeedsCancel;

    node = module.GetNxtCnfType(runConf, NULL, eMOD_IN);
    while (node != NULL)
    {
        if (node->canRun)
        {
            bNeedsCancel = (node->pMod->isCompatibleWithFeature(
                                sFEATURENonCancelInputTermination) == RS_RET_OK)
                               ? 0
                               : 1;
            DBGPRINTF("running module %s with config %p, term mode: %s\n",
                      node->pMod->pszName, node,
                      bNeedsCancel ? "cancel" : "cooperative/SIGTTIN");
            thrdCreate(node->pMod->mod.im.runInput, node->pMod->mod.im.afterRun,
                       bNeedsCancel,
                       (node->pMod->cnfName == NULL) ? node->pMod->pszName
                                                     : node->pMod->cnfName);
        }
        node = module.GetNxtCnfType(runConf, node, eMOD_IN);
    }

    return RS_RET_OK; /* intentional: we do not care about module errors */
}
/* Actually run the input modules.  This happens after privileges are dropped,
 * if that is requested.
 */
Actually run the input modules.  This happens after privileges are dropped,
if that is requested.
Actually run the input modules . This happens after privileges are dropped if that is requested .
static rsRetVal runInputModules(void)
{
    cfgmodules_etry_t* node;
    int bNeedsCancel;
    node = module.GetNxtCnfType(runConf, NULL, eMOD_IN);
    while (node != NULL)
    {
        if (node->canRun)
        {
            bNeedsCancel = (node->pMod->isCompatibleWithFeature(
                                sFEATURENonCancelInputTermination) == RS_RET_OK)
                               ? 0
                               : 1;
            DBGPRINTF("running module %s with config %p, term mode: %s\n",
                      node->pMod->pszName, node,
                      bNeedsCancel ? "cancel" : "cooperative/SIGTTIN");
            thrdCreate(node->pMod->mod.im.runInput, node->pMod->mod.im.afterRun,
                       bNeedsCancel,
                       (node->pMod->cnfName == NULL) ? node->pMod->pszName
                                                     : node->pMod->cnfName);
        }
        node = module.GetNxtCnfType(runConf, node, eMOD_IN);
    }
    return RS_RET_OK; 
}
static rsRetVal runInputModules ( void ) { cfgmodules_etry_t * node ; int bNeedsCancel ; node = module . GetNxtCnfType ( runConf , NULL , eMOD_IN ) ; while ( node != NULL ) { if ( node -> canRun ) { bNeedsCancel = ( node -> pMod -> isCompatibleWithFeature ( sFEATURENonCancelInputTermination ) == RS_RET_OK ) ? 0 : 1 ; DBGPRINTF ( " \n " , node -> pMod -> pszName , node , bNeedsCancel ? " " : " " ) ; thrdCreate ( node -> pMod -> mod . im . runInput , node -> pMod -> mod . im . afterRun , bNeedsCancel , ( node -> pMod -> cnfName == NULL ) ? node -> pMod -> pszName : node -> pMod -> cnfName ) ; } node = module . GetNxtCnfType ( runConf , node , eMOD_IN ) ; } return RS_RET_OK ; }
Actually run the input modules.
Actually run the input modules .
/* intentional: we do not care about module errors */