This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
2
2
[PATCH kanshi] Reset errno before calling fgetc
kanshi might fail to reload configuration with EAGAIN here.
This is because fgetc only sets errno when error occurred, but won't
clear errno when there's no error.
---
parser.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/parser.c b/parser.c
index 5b774d9..1853ff7 100644
--- a/parser.c
+++ b/parser.c
@@ -33,6 +33,7 @@ static int parser_read_char(struct kanshi_parser *parser) {
return ch;
}
+ errno = 0;
int ch = fgetc(parser->f);
if (ch == EOF) {
if (errno != 0) {
--
2.40.0
[kanshi/patches/.build.yml] build success
Good catch! Pushed, thanks for the fix.