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/tools/rsyslogd.c
void rsyslogd_submitErrMsg(const int severity, const int iErr, const uchar* msg)
{
    if (glbl.GetGlobalInputTermState() == 1)
    {
        /* After fork the stderr is unusable (dfltErrLogger uses is internally)
         */
        if (!doFork)
            dfltErrLogger(severity, iErr, msg);
    }
    else
    {
        logmsgInternal(iErr, LOG_SYSLOG | (severity & 0x07), msg, 0);
    }
}
/* this is a special function used to submit an error message. This
 * function is also passed to the runtime library as the generic error
 * message handler. -- rgerhards, 2008-04-17
 */
this is a special function used to submit an error message. This
function is also passed to the runtime library as the generic error
message handler.
this is a special function used to submit an error message . This function is also passed to the runtime library as the generic error message handler .
void rsyslogd_submitErrMsg(const int severity, const int iErr, const uchar* msg)
{
    if (glbl.GetGlobalInputTermState() == 1)
    {
        if (!doFork)
            dfltErrLogger(severity, iErr, msg);
    }
    else
    {
        logmsgInternal(iErr, LOG_SYSLOG | (severity & 0x07), msg, 0);
    }
}
void rsyslogd_submitErrMsg ( const int severity , const int iErr , const uchar * msg ) { if ( glbl . GetGlobalInputTermState ( ) == 1 ) { if ( ! doFork ) dfltErrLogger ( severity , iErr , msg ) ; } else { logmsgInternal ( iErr , LOG_SYSLOG | ( severity & 0x07 ) , msg , 0 ) ; } }
this is a special function used to submit an error message.
this is a special function used to submit an error message .
/* After fork the stderr is unusable (dfltErrLogger uses is internally)
         */