#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Mon, 23 Apr 2018 18:56:07 +0200
changeset 22696 7b933d672ea3
parent 22695 a817e109e67d
child 22697 e840d7085b3e
#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
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