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/nsd_ptcp.c
static rsRetVal Abort(nsd_t* pNsd)
{
    struct linger ling;
    nsd_ptcp_t* pThis = (nsd_ptcp_t*)pNsd;

    DEFiRet;
    ISOBJ_TYPE_assert((pThis), nsd_ptcp);

    if ((pThis)->sock != -1)
    {
        ling.l_onoff = 1;
        ling.l_linger = 0;
        if (setsockopt((pThis)->sock, SOL_SOCKET, SO_LINGER, &ling,
                       sizeof(ling)) < 0)
        {
            dbgprintf("could not set SO_LINGER, errno %d\n", errno);
        }
    }

    RETiRet;
}
/* abort a connection. This is meant to be called immediately
 * before the Destruct call. -- rgerhards, 2008-03-24
 */
abort a connection. This is meant to be called immediately
before the Destruct call.
abort a connection . This is meant to be called immediately before the Destruct call .
static rsRetVal Abort(nsd_t* pNsd)
{
    struct linger ling;
    nsd_ptcp_t* pThis = (nsd_ptcp_t*)pNsd;
    DEFiRet;
    ISOBJ_TYPE_assert((pThis), nsd_ptcp);
    if ((pThis)->sock != -1)
    {
        ling.l_onoff = 1;
        ling.l_linger = 0;
        if (setsockopt((pThis)->sock, SOL_SOCKET, SO_LINGER, &ling,
                       sizeof(ling)) < 0)
        {
            dbgprintf("could not set SO_LINGER, errno %d\n", errno);
        }
    }
    RETiRet;
}
static rsRetVal Abort ( nsd_t * pNsd ) { struct linger ling ; nsd_ptcp_t * pThis = ( nsd_ptcp_t * ) pNsd ; DEFiRet ; ISOBJ_TYPE_assert ( ( pThis ) , nsd_ptcp ) ; if ( ( pThis ) -> sock != -1 ) { ling . l_onoff = 1 ; ling . l_linger = 0 ; if ( setsockopt ( ( pThis ) -> sock , SOL_SOCKET , SO_LINGER , & ling , sizeof ( ling ) ) < 0 ) { dbgprintf ( " \n " , errno ) ; } } RETiRet ; }
abort a connection.
abort a connection .