mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-27 20:50:34 +02:00
gnu: js-mathjax: Avoid "Too many open files" error while building.
* gnu/packages/javascript.scm (js-mathjax)[arguments]: Add call to 'close-pipe'. Previously builds would sometimes fail with EMFILE (this was non-deterministic as it depends on GC activity.)
This commit is contained in:
@@ -117,7 +117,11 @@
|
||||
(let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
|
||||
(call-with-output-file installed
|
||||
(lambda (port)
|
||||
(dump-port minified port)))))
|
||||
(dump-port minified port)))
|
||||
|
||||
(let ((exit (close-pipe minified)))
|
||||
(unless (zero? exit)
|
||||
(error "dear, uglify-js failed" exit)))))
|
||||
(else
|
||||
(install-file file (dirname installed))))))
|
||||
(find-files "."))
|
||||
|
||||
Reference in New Issue
Block a user