Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81880a1a7a21fea587dbd9a7127efa71467a2ee5a423c3ef427008fe742b2d10
Ticket: 6f8bbbb34bf84bf0032c9f647e7e480e4ad03904
kqueue notifier hangs on OpenBSD
User & Date: sebres on 2026-07-04 17:48:49
Changes

  1. comment changed to:
    If the kqueue notifier is configured on OpenBSD, tests will hang.
    First test to hang is basic-26.1, if skipped then chan-16.9.
    
    checking for advanced notifier support... kqueue(2) : tests hang
    checking for advanced notifier support... none : tests pass, all the way through to the end
    
    UPD: 9.1a1 looks good.
    
  2. icomment:
    I could bet that it'd be the change of unix/tclKqueueNotfy.c from [def988e9cd676b5b]:
    
    <pre><code>
    -    if (timePtr != NULL) {
    +	timeout.tv_sec = timePtr->sec;
    +	timeout.tv_usec = timePtr->usec;
    -    if (time > 0) {
    +	timeout.tv_sec = time / 1000000;
    +	timeout.tv_usec = time % 1000000;
    </code></pre>
    because if time is negative for some reasons, it'd wait infinitely instead of leave waiting proc immediately.
    
    But <a href="http://paste.tclers.tk/6221">oldlaptop tested it</a> and it seems to hang further.
    
    However, I'm still sure it shall be rewritten anyway for backwards compatibility reasons (e. g. some extension may call Tcl_WaitForEvent with some negative value and behavior gets changed completely).
    
  3. login: "sebres"
  4. mimetype: "text/x-fossil-wiki"