#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Thu, 12 Jan 2017 01:13:40 +0100
changeset 21231 985ae4f2c424
parent 21230 9b7a6559527b
child 21232 621013a10bc9
#BUGFIX by stefan class: PipeStream changed: #openPipeFor:withMode:errorDisposition:inDirectory: fix stdio filepointer memory leak introduced in V1.130
PipeStream.st
--- a/PipeStream.st	Thu Jan 12 01:11:21 2017 +0100
+++ b/PipeStream.st	Thu Jan 12 01:13:40 2017 +0100
@@ -686,10 +686,10 @@
 
     result ifTrue:[
         "successfull creation of subprocesss"
-        self setFileHandle:myPipeEnd fileHandle mode:rwMode.
+        handle := myPipeEnd handle.
+        handleType := myPipeEnd handleType.
         myPipeEnd unregisterForFinalization.    "make sure filedesciptor is not closed by finalizer"
         myPipeEnd := nil.
-        handleType := #pipeFilePointer.
     ] ifFalse:[
         "the pipe open failed for some reason ...
          ... this may be either due to an invalid command string,