#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
--- 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