Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2f47616e473ec36aabdeaccee1c187e547224de0
Ticket: c4e230f29b5cd4854af0abc822780b7118cba8b7
unixeventfork-1.1 hangs on OS X
User & Date: dgp on 2013-08-05 12:35:20
Changes

  1. icomment:
    It looks to me that on (recent enough) OS X,
    the "don't call fork() without exec()" rule
    is not something imposed by Tcl, but something
    the system itself very strongly wants.  (At least
    when the "CoreFoundation" is in use, which it is
    in the Tcl source code.)
    
    I think the best next step is to limit the creation
    of the [testfork] testing command so that it is not
    created on OS X executables.  Then the existing
    constraint on test unixforkevent-1.1 that [testfork]
    must exist will be enough to protect against trouble
    in the test suite.
    
    The other thing to make note of somewhere, somehow, is
    that this limited offering of some fork() without exec()
    in programs using Tcl is not portable to OS X.  I think
    it's already not portable to Windows, so further refining
    the accuracy of portability limits shouldn't be a severe
    problem.
    
    I do not know whether Apache / Rivet have portability to
    OS X on their list of goals.  If so, this will continue
    to be a problem for them.
    
    The only other conceivable option I see is for some true
    OS X wizard developer to code a significant rewrite that
    avoids or works around the constraints of CoreFoundation.
    Whether that's impossible or merely difficult I cannot say.
    
  2. login: "dgp"
  3. mimetype: "text/plain"