Annotation of mqtt/src/daemon.c, revision 1.1.2.3

1.1.2.1   misho       1: #include "global.h"
                      2: 
                      3: 
1.1.2.2   misho       4: int
1.1.2.3 ! misho       5: Run(int sock)
1.1.2.2   misho       6: {
                      7:        FTRACE(1);
                      8: 
1.1.2.3 ! misho       9:        if (listen(sock, SOMAXCONN) == -1) {
        !            10:                syslog(LOG_ERR, "Error:: listen() #%d - %s\n", errno, strerror(errno));
        !            11:                return -1;
        !            12:        }
        !            13: 
1.1.2.2   misho      14:        return 0;
                     15: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>