Skip to content

Instantly share code, notes, and snippets.

@shirok
Created December 28, 2016 01:04
Show Gist options
  • Save shirok/7e92d1a919c1935ae4a8a3f60fc69207 to your computer and use it in GitHub Desktop.
Save shirok/7e92d1a919c1935ae4a8a3f60fc69207 to your computer and use it in GitHub Desktop.
diff --git a/lib/gauche/process.scm b/lib/gauche/process.scm
index 069348e..683ab6e 100644
--- a/lib/gauche/process.scm
+++ b/lib/gauche/process.scm
@@ -382,6 +382,7 @@
[gauche.sys.threads
(receive (in out) (sys-pipe)
(push! iomap `(,fd . ,in))
+ (push! toclose in)
(thread-start! (make-thread (cut write-arg out))))]
[else
;; If we can't use threads, we fall back to using temporary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment