[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 02/08: comm: ‘call-with-syslog-port’ opens /dev/{kmsg,console
From: |
Ludovic Courtès |
Subject: |
[shepherd] 02/08: comm: ‘call-with-syslog-port’ opens /dev/{kmsg,console} non-blocking. |
Date: |
Mon, 5 Aug 2024 13:15:05 -0400 (EDT) |
civodul pushed a commit to branch devel
in repository shepherd.
commit ac1078a30e4c1b43d32922cc42a27fb4b92dd586
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Aug 5 18:59:14 2024 +0200
comm: ‘call-with-syslog-port’ opens /dev/{kmsg,console} non-blocking.
* modules/shepherd/comm.scm (call-with-syslog-port): Pass PORT through
‘non-blocking-port’.
---
modules/shepherd/comm.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/shepherd/comm.scm b/modules/shepherd/comm.scm
index 59e0adb..2320e30 100644
--- a/modules/shepherd/comm.scm
+++ b/modules/shepherd/comm.scm
@@ -297,14 +297,14 @@ mechanism."
(call-with-output-file "/dev/kmsg"
(lambda (port)
(setvbuf port 'block)
- (proc port))))
+ (proc (non-blocking-port port)))))
(lambda args
(if (memv (system-error-errno args)
(list ENOENT EACCES EPERM))
(call-with-output-file "/dev/console"
(lambda (port)
(setvbuf port 'none)
- (proc port)))
+ (proc (non-blocking-port port))))
(apply throw args))))
(apply throw args)))))))))
- [shepherd] branch devel updated (9f2d5ea -> a43ae34), Ludovic Courtès, 2024/08/05
- [shepherd] 03/08: logger: Make syslog output non-blocking., Ludovic Courtès, 2024/08/05
- [shepherd] 08/08: guix: Add system test for the built-in ‘system-log’ service., Ludovic Courtès, 2024/08/05
- [shepherd] 02/08: comm: ‘call-with-syslog-port’ opens /dev/{kmsg,console} non-blocking.,
Ludovic Courtès <=
- [shepherd] 01/08: comm: ‘make-shepherd-output-port’ uses suspendable ‘put-string’., Ludovic Courtès, 2024/08/05
- [shepherd] 06/08: endpoints: Call ‘listen’ only for stream sockets., Ludovic Courtès, 2024/08/05
- [shepherd] 07/08: Add system log service., Ludovic Courtès, 2024/08/05
- [shepherd] 04/08: Move endpoints to (shepherd endpoints)., Ludovic Courtès, 2024/08/05
- [shepherd] 05/08: endpoints: Fix docstring of ‘open-sockets’., Ludovic Courtès, 2024/08/05