[rsyslog] what does error -2077 trying to add listener mean

Thomas Mieslinger thomas.mieslinger at 1und1.de
Mon Mar 16 16:56:31 CET 2009


Hi Rainer,

there is only one place where RS_RET_COULD_NOT_BIND is returned:

runtime/nsd_ptcp.c

	numSocks = 0;   /* num of sockets counter at start of array */
         for(r = res; r != NULL ; r = r->ai_next) {
                sock = socket(r->ai_family, r->ai_socktype, r->ai_protocol);

[ lots of magic ]

	}

         if(numSocks == 0) {
                 dbgprintf("No TCP listen sockets could successfully be 
initialized");
                 ABORT_FINALIZE(RS_RET_COULD_NOT_BIND);
         }

I have no idea why the OS reports the Sockets open and messages get 
received, maybe there is a minor problem in the code, but somehow it 
works...

Thomas



More information about the rsyslog mailing list