syslogd: ignore EINVAL from kernel, silently restart polling

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-06-21 23:13:44 +02:00
parent 82b7e2bfcb
commit 7ce44f5b9e

View File

@ -533,6 +533,9 @@ static void kernel_cb(int fd, void *arg)
case EAGAIN:
break;
case EINVAL:
break;
default:
ERR("klog read()");
socket_close(fd);