Skip to content

Commit a61cf6c

Browse files
author
马犇
committed
fixed bug for ubuntu
1 parent f440e17 commit a61cf6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cfc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ void *cfc_thread_worker(void *arg)
348348
cfc_item_t *item;
349349
for (;;) {
350350
result = read(notify, &tmp, 1);
351-
if (result == -1 || tmp != '\0') {
351+
if ((result == -1 || tmp != '\0')
352+
&& result != 0) {
352353
break;
353354
}
354355

0 commit comments

Comments
 (0)