From 34e522bcad11b1264a92e46379991fb4d344f1d1 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 30 Aug 2011 15:03:25 +0200 Subject: added check for file existens. renamed the dhcpcd bin to customdhcpcd. temporal solution for the message loss problem => added a sleep(1) function after every send operation. this makes the programm a bit slower but it solves the problem, we now receive every message (issue 339) --- workspace/customdhcpcd/src/logwriter.c | 1 + 1 file changed, 1 insertion(+) (limited to 'workspace/customdhcpcd/src/logwriter.c') diff --git a/workspace/customdhcpcd/src/logwriter.c b/workspace/customdhcpcd/src/logwriter.c index 2ef257c..a6adbe3 100644 --- a/workspace/customdhcpcd/src/logwriter.c +++ b/workspace/customdhcpcd/src/logwriter.c @@ -97,6 +97,7 @@ void sendToQt(log_msg * msg) { syslog (LOG_ERR, "[fbgui] ERROR writing to socket: [%d:%d] %s (%s)", msg->status, msg->substatus, msg->msg, msg->device); // fprintf(stdout, "ERROR writing to socket: %s", msg); } + sleep(1); } void logToQt(int status, int substatus, const char * msg) { -- cgit v1.2.3-55-g7522