Xymon Mailing List Archive search

bbgen frequent yellow alerts - hobbitd problem?

list Henrik Størner
Mon, 6 Nov 2006 17:33:19 +0100
Message-Id: <user-1f71b96ef328@xymon.invalid>

Oops - one line too many among those extra ones I sent you:

On Mon, Nov 06, 2006 at 05:29:59PM +0100, Henrik Stoerner wrote:
I'd like you to add 8 lines between these two:

	n = recv(sockfd, recvbuf, sizeof(recvbuf)-1, 0);
	if (n < 0) {
		dbgprintf("recv() returned error: %s\n", strerror(errno));
		if (errno == EAGAIN) continue; 
	}
	if (n == 0) {
		dbgprintf("recv() gave us 0 bytes\n");
		continue;
                ^^^^^^^^^ dont put this "continue" line in there.


Regards,
Henrik