More work on new server loop

This commit is contained in:
2014-08-08 21:46:02 +01:00
parent a52023a711
commit cc069c64db
8 changed files with 168 additions and 22 deletions

View File

@@ -82,7 +82,9 @@ void*log_loop(void* arg) {
time_t ctime;
struct tm *tinfo = calloc(1,sizeof(struct tm));
while(true) {
//Read next message pointer from pipe
if (read(l->pRead, buf, sizeof(void*)) <= 0) {
//zero length indicates the write end closed (EOF)
if (l->running == false) {
break;
}