diff options
| author | Christopher Baines <mail@cbaines.net> | 2026-03-02 12:20:52 +0000 |
|---|---|---|
| committer | Christopher Baines <mail@cbaines.net> | 2026-03-11 15:31:06 +0000 |
| commit | ba35edb100b3383bd1b9a89f92ded74ae40e5357 (patch) | |
| tree | 6166b912b964efb2d7d026fe50e82a5cc19367ac | |
| parent | e6581cc5f9567e4bf100e1d3e052b3f467656d49 (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.scm | 7 |
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." | |||
| 169 | ;; build output. | 169 | ;; build output. |
| 170 | (connect sock AF_UNIX build-output) | 170 | (connect sock AF_UNIX build-output) |
| 171 | 171 | ||
| 172 | (when (integer? proto) | ||
| 173 | ;; port->connection doesn't setup buffering, so | ||
| 174 | ;; do this here | ||
| 175 | (setvbuf (store-connection-socket store) | ||
| 176 | 'block | ||
| 177 | %default-store-connection-buffer-size)) | ||
| 178 | |||
| 172 | (display | 179 | (display |
| 173 | (and=> | 180 | (and=> |
| 174 | ;; Silence autoload warnings and the likes. | 181 | ;; Silence autoload warnings and the likes. |
