Skip to content
Tcl Source Code History Of Ticket 219149ffff
Login

History Of Ticket 219149ffff

Artifacts Associated With Ticket 219149ffff

  1. Ticket change [786efe175e] (rid 89961) by nobody on 2000-10-26 05:02:20:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 950 Bug
      Version: 8.0p2
      SubmitDate: '1998-12-14'
      LastModified: '1999-12-07'
      Severity: SER
      Status: Assigned
      Submitter: pat
      ChangedBy: hobbs
      OS: Linux
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name: Harald
      
      ReproducibleScript:
      Run the following script.
      
      #!/bin/sh
      # exec tclsh8.0 "$0" 
      
      exec mkfifo fifo
      puts [exec cat <fifo >@stdout &]
      
      ObservedBehavior:
      Although there is an `&' at the end
      of the exec-arguments, the exec does
      not return.
      
      DesiredBehavior:
      If `&' is at the end of exec-args,
      exec should always return soon, independent of input redirection.
      
      
      There is a not-so-perfect workaround. The fifo can be opened with NONBLOCK and the handle to the opened fifo can be used to redirect input. However then the child-process sees a non-blocking
      input channel, which is probably not what was intended.
      --
      Verified in 8.2.2 on Solaris. 
      -- 12/07/1999 hobbs
      
      
      
    4. foundin initialized to: "obsolete: 8.0p2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "62. (unused)"
    10. title initialized to:
      bad interaction of input redirect from named pipe with backg
      
    11. type initialized to: "Bug"
  2. Ticket change [54c1f9da7f] (rid 94004) by dgp on 2001-04-03 06:21:08:

    1. subsystem changed to: "27. Channel Types"
  3. Ticket change [5323cd8b4b] (rid 126432) by andreas_kupries on 2001-09-08 06:05:56:

    1. assignee changed to: "andreas_kupries"
  4. Ticket change [f98599e2ed] (rid 91722) by andreas_kupries on 2001-09-12 03:00:52:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Harald = <[email protected]> ...
      Harald Kirsch, author of 'bras'.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [86819e09de] (rid 131521) by dgp on 2002-07-06 03:34:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Is this still a valid bug report?
      
      If so, it may be the oldest Open bug in Tcl.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [01290b9b16] (rid 119429) by mistachkin on 2002-10-20 02:55:07:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Tested and verified on 
      
      FreeBSD 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Oct 10 
      13:55:32 EDT 2002 /usr/obj/usr/src/sys/GENERIC i386
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  7. Ticket change [4d163fed49] (rid 127004) by dgp on 2013-03-24 22:15:55:

    1. icomment:
      oldest open bug in Tcl still hanging in there.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [e8f4880a6b] (rid 104729) by ferrieux on 2013-03-24 22:27:40:

    1. icomment:
      To me, [exec &] does the best compromise between asynchronicity and immediate reporting of lethal failures.
      
      The most popular "immediate failure" that [exec &] reports synchronously is one about the executable (not found, or improper rights). Nobody complains about that.
      
      In the same logic, it also reports *synchronously* about a failure to do the redirections. This is done by putting the open()  *before* the sync point. Again, everybody is happy about this behavior I guess.
      
      Then, in the specific case of a named pipe with nobody yet on the other end, this very open() will block. That's a necessary consequence of the above. It may surprise people because it is unlike the Bourne Shell, where the open()s lay completely within the forked process and no rendezvous will propagate the blocking. But I still think this rendezvous is a superior feature of Tcl, geared towards better error reporting.
      
      So I'd rather document the gotcha than overhaul a sane behavior.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"