Skip to content
Snippets Groups Projects
Unverified Commit bb64b2e7 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

herd: Use the Guile 2.2 'setvbuf' API.

* gnu/services/herd.scm (open-connection): Use 'block for 'setvbuf'.
parent 88bc3c89
No related branches found
No related tags found
No related merge requests found
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
......@@ -76,7 +76,7 @@ (define* (open-connection #:optional (file (%shepherd-socket-file)))
(catch 'system-error
(lambda ()
(connect sock address)
(setvbuf sock _IOFBF 1024)
(setvbuf sock 'block 1024)
sock)
(lambda args
(close-port sock)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment