Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:46:53 +0000 (18:46 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:46:53 +0000 (18:46 +0800)
Spawn.vala

index 81a7594..b35fc56 100644 (file)
@@ -346,9 +346,9 @@ public class Spawn : Object
             Process.close_pid(this.pid); // hopefully kills it..
             this.pid = -1;
         }
-        if (this.in_ch)  this.in_ch.close();
-        if (this.out_ch)  this.out_ch.close();
-        if (this.err_ch)  this.err_ch.close();
+        if (this.in_ch)  this.in_ch.shudown(true);
+        if (this.out_ch)  this.out_ch.shudown(true);
+        if (this.err_ch)  this.err_ch.shudown(true);
         // blank out channels
         this.in_ch = false;
         this.err_ch = false;