Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ce8f76d61d0e82f8c1fcd0508ac45fb9677a1024985658835a553c05e5c05e2c
Ticket: 407b70361c1487732ef3e1fff67d61e60903431a
New test failures. Maybe unix pipe troubles?
User & Date: chw on 2024-05-22 20:28:12
Changes

  1. closedate changed to: "2460453.35291787"
  2. closer changed to: "chw"
  3. icomment:
    Gustaf,
    
    yep, Debian 9 is dead. But I still insist on the semantic of
    
    posix_spawn_file_actions_adddup2(&actions, 1, 1)
    
    If it does not really dup, then the FD_CLOEXEC is not cleared.
    Since dup() seems to do this by POSIX definition (but see below).
    
    If you analyze the olden forkery, the trick is that the child
    before exec fixes the three nasty 0/1/2 file descriptors 
    to be not FD_CLOEXEC.
    
    And then there's specially hackery for the ultra dead Ultrix
    in SetupStdFile(). Since Ultrix does not clear FD_CLOEXEC on
    the dup'ed fd (see above).
    
    IMO too much variables and no certainty and no proper definition
    of p_s_f_a_a in POSIX so better make things safe.
    
    If you don't like that patch, no problem, I will live with it.
    
  4. login: "chw"
  5. mimetype: "text/x-fossil-plain"