]> gitweb.factorcode.org Git - factor.git/commitdiff
io.launcher: Fix bug -- if dispose fails, still call dispose on the other
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 19 May 2013 17:22:07 +0000 (10:22 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 19 May 2013 17:22:07 +0000 (10:22 -0700)
resource.

basis/io/launcher/launcher.factor

index 02a814284d13b7feb29f96525d837ca33c741e20..649bbf00bc061ff3e7eb81e1fd06038e04122a67 100755 (executable)
@@ -179,7 +179,7 @@ M: process cancel-operation kill-process ;
 
 M: object run-pipeline-element
     [ >process swap >>stdout swap >>stdin run-detached ]
-    [ drop [ [ dispose ] when* ] bi@ ]
+    [ [ drop [ [ &dispose drop ] when* ] bi@ ] with-destructors ]
     3bi
     wait-for-process ;