From dd2ab92d9d2b09d8b7fae42d565c74377b04889a Mon Sep 17 00:00:00 2001
From: Ludovic Courtès <ludo@gnu.org>
Date: Thu, 21 Apr 2022 00:02:21 +0200
Subject: home: shepherd: Redirect input port to /dev/null.

Suggested by Aleksandr Vityazev <avityazev@posteo.org>.

* gnu/home/services/shepherd.scm (home-shepherd-configuration-file):
Redirect input port to /dev/null.
---
 gnu/home/services/shepherd.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'gnu/home')

diff --git a/gnu/home/services/shepherd.scm b/gnu/home/services/shepherd.scm
index a105c26c47..62ab0aadc6 100644
--- a/gnu/home/services/shepherd.scm
+++ b/gnu/home/services/shepherd.scm
@@ -86,8 +86,8 @@ (define config
                 (start-in-the-background services-to-start)
                 (for-each start services-to-start))
 
-            ;; Return one value.
-            #t)))
+            (redirect-port (open-input-file "/dev/null")
+                           (current-input-port)))))
 
     (scheme-file "shepherd.conf" config)))
 
-- 
cgit v1.2.3