Skip to content

Commit

Permalink
fixed bug for ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
马犇 committed Apr 7, 2016
1 parent f440e17 commit a61cf6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ void *cfc_thread_worker(void *arg)
cfc_item_t *item;
for (;;) {
result = read(notify, &tmp, 1);
if (result == -1 || tmp != '\0') {
if ((result == -1 || tmp != '\0')
&& result != 0) {
break;
}

Expand Down

0 comments on commit a61cf6c

Please sign in to comment.