[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/16: list-runtime-roots: Bufferize the lsof pipe.
From: |
Ludovic Courtès |
Subject: |
14/16: list-runtime-roots: Bufferize the lsof pipe. |
Date: |
Wed, 8 Mar 2017 17:44:35 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit ac9c1dc7bdf1a016fcd1989993999e4a32d0c885
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 8 23:10:09 2017 +0100
list-runtime-roots: Bufferize the lsof pipe.
* nix/scripts/list-runtime-roots.in (lsof-roots): Add 'setvbuf' call for
PIPE.
---
nix/scripts/list-runtime-roots.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nix/scripts/list-runtime-roots.in
b/nix/scripts/list-runtime-roots.in
index 993eb16..a693808 100644
--- a/nix/scripts/list-runtime-roots.in
+++ b/nix/scripts/list-runtime-roots.in
@@ -1,7 +1,7 @@
address@hidden@ -ds
!#
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <address@hidden>
+;;; Copyright © 2012, 2013, 2014, 2017 Ludovic Courtès <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -133,6 +133,9 @@ or the empty list."
(define %file-rx
(make-regexp "^n/(.*)$"))
+ ;; We're going to read it all.
+ (setvbuf pipe _IOFBF 16384)
+
(let loop ((line (read-line pipe))
(roots '()))
(cond ((eof-object? line)
- 04/16: services: prosody: Use 'id' to introduce unhygienic top-level identifiers., (continued)
- 04/16: services: prosody: Use 'id' to introduce unhygienic top-level identifiers., Ludovic Courtès, 2017/03/08
- 05/16: build: Unset 'NIX_BUILD_HOOK' when offloading support is missing., Ludovic Courtès, 2017/03/08
- 09/16: gnu: Add guile2.2-reader., Ludovic Courtès, 2017/03/08
- 01/16: guix archive: Allow compilation with Guile 2.2., Ludovic Courtès, 2017/03/08
- 06/16: hash: Close or flush sha256 output ports before calling their 'get' procedure., Ludovic Courtès, 2017/03/08
- 11/16: download: Update the Savannah mirror list., Ludovic Courtès, 2017/03/08
- 12/16: ui: Avoid '_' as a pattern variable in 'match'., Ludovic Courtès, 2017/03/08
- 15/16: packages: Use address@hidden syntax when reporting ambiguities., Ludovic Courtès, 2017/03/08
- 13/16: ui: Don't use '%default-port-encoding' to set the encoding of string ports., Ludovic Courtès, 2017/03/08
- 16/16: utils: Make sure to use the right 'bytevector->string'., Ludovic Courtès, 2017/03/08
- 14/16: list-runtime-roots: Bufferize the lsof pipe.,
Ludovic Courtès <=
- 07/16: tests: Avoid zero-expression 'begin' form., Ludovic Courtès, 2017/03/08
- 08/16: gnu: guile-reader: Update to 0.6.2., Ludovic Courtès, 2017/03/08
- 10/16: gnu: Add guile2.2-haunt., Ludovic Courtès, 2017/03/08