summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2026-03-02 12:20:52 +0000
committerChristopher Baines <mail@cbaines.net>2026-03-11 15:31:06 +0000
commitba35edb100b3383bd1b9a89f92ded74ae40e5357 (patch)
tree6166b912b964efb2d7d026fe50e82a5cc19367ac
parente6581cc5f9567e4bf100e1d3e052b3f467656d49 (diff)
build-self: Setup buffering for the store socket.
In the case where port->connection is used, since this doesn't setup buffering. * build-aux/build-self.scm (build-program): Setup buffering for the store socket. Change-Id: I822bb628e92d1070e78a2ad9e95665ca2ff4a351
-rw-r--r--build-aux/build-self.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/build-aux/build-self.scm b/build-aux/build-self.scm
index fdb974bde86..b0a427698fa 100644
--- a/build-aux/build-self.scm
+++ b/build-aux/build-self.scm
@@ -169,6 +169,13 @@ build daemon, from within the generated build program."
;; build output.
(connect sock AF_UNIX build-output)
+ (when (integer? proto)
+ ;; port->connection doesn't setup buffering, so
+ ;; do this here
+ (setvbuf (store-connection-socket store)
+ 'block
+ %default-store-connection-buffer-size))
+
(display
(and=>
;; Silence autoload warnings and the likes.