Overview
| Artifact ID: | d3ae1928ecdc3da18caa98c374499678a80b48cf |
|---|---|
| Ticket: | 894da183c8475264b8070b5b4dbbd6dd72f8dd69
In a thread, switch a non-blocking channel to blocking and close == hang |
| User & Date: | oehhar on 2015-04-30 13:02:01 |
Changes
- closedate changed to: "2457143.04307648"
- closer changed to: "oehhar"
- icomment:
Thank you for the patch and the test. I have tried this checkin [98d7d3d724], Win 8.1, MS-VC6. For me, the test fails as follows: <verbatim> ---- io-53.4.1 start ==== io-53.4.1 Bug 894da183c8 FAILED ==== Contents of test case: set big bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\n variable x for {set x 0} {$x < 12} {incr x} { append big $big } file delete $path(pipe) set f1 [open $path(pipe) w] puts $f1 [list file delete $path(test1)] puts $f1 { puts ready set f [open io-53.4.1 w] fcopy stdin $f -command { set x } vwait x close $f } puts $f1 "close \[[list open $path(test1) w]]" close $f1 set f1 [open "|[list [interpreter] $path(pipe)]" r+] set result [gets $f1] fconfigure $f1 -blocking 0 -buffersize 125000 puts $f1 $big fconfigure $f1 -blocking 1 close $f1 set big {} while {[catch {glob $path(test1)}]} {after 50} file delete $path(test1) set check [file size io-53.4.1] file delete io-53.4.1 set check ---- Result was: 270338 ---- Result should have been (exact matching): 266241 ==== io-53.4.1 FAILED </verbatim> I suppose, this is due to different line ending styles: \n\r on windows and by \n on unix.... - login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"