Honor UEV_ONCE when stdin is redirected from a file

With stdin redirected from a regular file, uev_run() with UEV_ONCE does
not return until end of file:

    app < file.txt

The workaround for regular files, which epoll cannot watch, restarts
the loop before the UEV_ONCE check.

Check the flag there too.

Closes #37
This commit is contained in:
omrzk authored and Joachim Wiberg committed 2026-11-16 14:54:47 +01:00
1 parent fbe2c15377
commit e699cb7f5f
4 files changed
+50 -1

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ TESTS += complete
TESTS += cronrun
TESTS += io
TESTS += signal
TESTS += stdin
TESTS += timer
TESTS += event