Overview
| Artifact ID: | cec6bc76b6999bb5eb152f860c9d2f0d2714e106 |
|---|---|
| Ticket: | 217834ffffffffffffffffffffffffffffffffff
"close" blocks even for non-blocking pipelines |
| User & Date: | nobody on 2000-10-26 00:44:36 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1682 Bug Version: 8.0.3 SubmitDate: '1999-03-31' LastModified: '1999-11-07' Severity: MED Status: Closed Submitter: pat ChangedBy: hobbs RelatedBugIDs: 710 OS: Solaris OSVersion: SunOS hostname 5.7 Generic sun4u sparc SUNW,Ultra-5_10 Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-11-07' Name:David F. Skoll ReproducibleScript: I define this procedure in tclsh 8.0.3 on Solaris 2.7: proc nonblock {} { set fp [open "|sleep 120" "RDONLY NONBLOCK"] fconfigure $fp -blocking 0 close $fp } ObservedBehavior: Reading the "close" manual page (and in fact perusing the Tcl source code) I expect this procedure to return immediately to its caller. However, the "close" blocks until the "sleep" exits. I thought that for non-blocking command pipelines, close was non-blocking too and that the children were reaped in the background. Is this a real bug or just misunderstanding on my part? DesiredBehavior: I expect an immediate return. - foundin changed to: "obsolete: 8.0.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "60. NRE and coroutines"
- title changed to: ""close" blocks even for non-blocking pipelines"
- type changed to: "Bug"