Posted to tcl by oldlaptop at Sat Jul 04 17:28:50 GMT 2026view pretty
$ fossil diff
Index: unix/tclKqueueNotfy.c
==================================================================
--- unix/tclKqueueNotfy.c
+++ unix/tclKqueueNotfy.c
@@ -638,11 +638,11 @@
/*
* Set up the timeout structure. Note that if there are no events to check
* for, we return with a negative result rather than blocking forever.
*/
- if (time > 0) {
+ if (time != 0) {
timeout.tv_sec = time / 1000000;
timeout.tv_usec = time % 1000000;
timeoutPtr = &timeout;
} else {
timeoutPtr = NULL;