From f1f510eb34fa7a60f7ea1d6f46d17a0e54bd21f7 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 18 Apr 2005 10:37:35 +0000 Subject: [PATCH] Check for error added --- mbtask/taskibc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mbtask/taskibc.c b/mbtask/taskibc.c index 051cdcfd..06453413 100644 --- a/mbtask/taskibc.c +++ b/mbtask/taskibc.c @@ -533,6 +533,8 @@ void receiver(struct servent *se) } else if (! strcmp(command, (char *)"PING")) { sprintf(csbuf, "PONG\r\n"); send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf); + } else if (atoi(command)) { + Syslog('r', "IBC: Got error %d", atoi(command)); } else if (tnsl->state == NCS_CONNECT) { /* * Only if connected we send a error response @@ -565,7 +567,7 @@ void *ibc_thread(void *dummy) myaddr_in.sin_family = AF_INET; myaddr_in.sin_addr.s_addr = INADDR_ANY; myaddr_in.sin_port = se->s_port; - Syslog('+', "IBC: listen on %s, port %d\n", inet_ntoa(myaddr_in.sin_addr), ntohs(myaddr_in.sin_port)); + Syslog('+', "IBC: listen on %s, port %d", inet_ntoa(myaddr_in.sin_addr), ntohs(myaddr_in.sin_port)); ls = socket(AF_INET, SOCK_DGRAM, 0); if (ls == -1) {