summaryrefslogtreecommitdiffstats
path: root/workspace/customdhcpcd/src/logwriter.c
diff options
context:
space:
mode:
authorNiklas2011-08-30 15:03:25 +0200
committerNiklas2011-08-30 15:03:25 +0200
commit34e522bcad11b1264a92e46379991fb4d344f1d1 (patch)
treee317e1b5f910e390ee4b1eae4e90df91ca78dc91 /workspace/customdhcpcd/src/logwriter.c
parenttried to fix the message loss problem, but failed. TODO: debug and socket sni... (diff)
downloadfbgui-34e522bcad11b1264a92e46379991fb4d344f1d1.tar.gz
fbgui-34e522bcad11b1264a92e46379991fb4d344f1d1.tar.xz
fbgui-34e522bcad11b1264a92e46379991fb4d344f1d1.zip
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)
Diffstat (limited to 'workspace/customdhcpcd/src/logwriter.c')
-rw-r--r--workspace/customdhcpcd/src/logwriter.c1
1 files changed, 1 insertions, 0 deletions
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) {