shithub: mc

Download patch

ref: f0eabb72719d366449d6456a5843793c9b0d62ab
parent: 52b8e747b71a308a9cebb0e688c128262e3bd5ab
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Aug 27 18:42:25 EDT 2016

Close the error fd.

--- a/lib/std/spork.myr
+++ b/lib/std/spork.myr
@@ -59,6 +59,7 @@
 		/* close unused fd ends */
 		close(infds[0]);
 		close(outfds[1]);
+		close(errfds[1]);
 		-> `Ok (pid, infds[1], outfds[0], errfds[0])
 	| `Err m:
 		-> `Err m