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/tcpsrv.c
static rsRetVal closeSess(tcpsrv_t* pThis, tcps_sess_t** ppSess,
                          nspoll_t* pPoll)
{
    DEFiRet;
    if (pPoll != NULL)
    {
        CHKiRet(nspoll.Ctl(pPoll, (*ppSess)->pStrm, 0, *ppSess, NSDPOLL_IN,
                           NSDPOLL_DEL));
    }
    pThis->pOnRegularClose(*ppSess);
    tcps_sess.Destruct(ppSess);
finalize_it:
    RETiRet;
}
/* helper to close a session. Takes status of poll vs. select into
 * consideration. rgerhards, 2009-11-25
 */
helper to close a session. Takes status of poll vs. select into
consideration.
helper to close a session . Takes status of poll vs . select into consideration .
static rsRetVal closeSess(tcpsrv_t* pThis, tcps_sess_t** ppSess,
                          nspoll_t* pPoll)
{
    DEFiRet;
    if (pPoll != NULL)
    {
        CHKiRet(nspoll.Ctl(pPoll, (*ppSess)->pStrm, 0, *ppSess, NSDPOLL_IN,
                           NSDPOLL_DEL));
    }
    pThis->pOnRegularClose(*ppSess);
    tcps_sess.Destruct(ppSess);
finalize_it:
    RETiRet;
}
static rsRetVal closeSess ( tcpsrv_t * pThis , tcps_sess_t * * ppSess , nspoll_t * pPoll ) { DEFiRet ; if ( pPoll != NULL ) { CHKiRet ( nspoll . Ctl ( pPoll , ( * ppSess ) -> pStrm , 0 , * ppSess , NSDPOLL_IN , NSDPOLL_DEL ) ) ; } pThis -> pOnRegularClose ( * ppSess ) ; tcps_sess . Destruct ( ppSess ) ; finalize_it : RETiRet ; }
helper to close a session.
helper to close a session .