# HG changeset patch # User Stefan Vogel # Date 1524502567 -7200 # Node ID 7b933d672ea3a1cd872d758992403c94512fe7a5 # Parent a817e109e67d499ef7ed65ef941c4f5d95ce4b0c #BUGFIX by stefan class: PipeStream changed: #close https://expeccoalm.exept.de/D252299 Do not #close executor shadow copies and o not show them as #isOpen. Fixes a problen when closing all open instances of e.g. Socket diff -r a817e109e67d -r 7b933d672ea3 PipeStream.st --- a/PipeStream.st Mon Apr 23 18:55:56 2018 +0200 +++ b/PipeStream.st Mon Apr 23 18:56:07 2018 +0200 @@ -1,3 +1,5 @@ +"{ Encoding: utf8 }" + " COPYRIGHT (c) 1989 by Claus Gittinger All Rights Reserved @@ -222,7 +224,7 @@ |p| p := PipeStream bidirectionalFor:'cat -u'. - p nextPutAll:'Wer ist der Bürgermeister von Wesel'; cr. + p nextPutAll:'Wer ist der Bürgermeister von Wesel'; cr. Transcript showCR:p nextLine. p close " @@ -537,13 +539,14 @@ This waits for the command to finish. Use abortAndClose for a fast (nonBlocking) close." - handle notNil ifTrue:[ + self isOpen ifTrue:[ super close. "/ wait for the pipe-command to terminate. self waitForPipeCommandWithTimeout:nil. ]. - "Modified: / 12.9.1998 / 16:51:04 / cg" + "Modified: / 12-09-1998 / 16:51:04 / cg" + "Modified: / 23-04-2018 / 18:25:04 / stefan" ! shutDown