fix(event): handle EINTR

This commit is contained in:
fengzero
2023-03-10 02:17:39 +00:00
parent 04892f55d5
commit 08ffb56ddb
+5
View File
@@ -88,6 +88,11 @@ static void *event_loop(void *arg)
if (ret == 0) {
continue;
}
if (ret == -1 && errno == EINTR) {
continue;
}
if (ret == -1 || events->stop) {
zlog_warn(neuron, "event loop exit, errno: %s(%d), stop: %d",
strerror(errno), errno, events->stop);