[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 18/24: shepherd: Remove half-baked readline support.
From: |
Ludovic Courtès |
Subject: |
[shepherd] 18/24: shepherd: Remove half-baked readline support. |
Date: |
Mon, 28 Mar 2022 17:24:47 -0400 (EDT) |
civodul pushed a commit to branch wip-fibers
in repository shepherd.
commit e7dc217bbbfca1ba3099bff4427e71c8dd67ddbb
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Mar 28 15:50:15 2022 +0200
shepherd: Remove half-baked readline support.
* modules/shepherd.scm (main): Remove call to 'activate-readline'.
(run-daemon): Remove initial 'handle-SIGCHLD' call.
---
modules/shepherd.scm | 22 ++--------------------
1 file changed, 2 insertions(+), 20 deletions(-)
diff --git a/modules/shepherd.scm b/modules/shepherd.scm
index febbfef..9fec3fb 100644
--- a/modules/shepherd.scm
+++ b/modules/shepherd.scm
@@ -24,7 +24,6 @@
#:use-module (ice-9 match)
#:use-module (ice-9 format)
#:use-module (ice-9 rdelim) ;; Line-based I/O.
- #:autoload (ice-9 readline) (activate-readline) ;for interactive use
#:use-module ((ice-9 threads) #:select (all-threads))
#:use-module (oop goops) ;; Defining classes and methods.
#:use-module (srfi srfi-1) ;; List library.
@@ -181,11 +180,6 @@ already ~a threads running, disabling 'signalfd' support")
(#t (display (getpid)))
(_ #t))
- ;; XXX: This call mostly to resolve 'handle-SIGCHLD' upfront.
- ;; This works around Guile 3.0.2 occasionally failing with:
- ;; "Failed to autoload handle-SIGCHLD in (ice-9 readline):"
- (handle-SIGCHLD)
-
;; Spawn a signal handling fiber.
(spawn-fiber
(if signal-port
@@ -317,20 +311,8 @@ already ~a threads running, disabling 'signalfd' support")
(l10n "get commands from socket FILE or from stdin (-)")
#:action (lambda (file)
(set! socket-file
- (if (not (string=? file "-"))
- file
- ;; We will read commands
- ;; from stdin, thus we
- ;; enable readline if it is
- ;; a non-dumb terminal.
- (and (isatty? (current-input-port))
- (not (string=? (getenv "TERM")
- "dumb"))
- (begin
- (activate-readline)
- ;; Finally, indicate that
- ;; we use no socket.
- #f)))))))
+ (and (not (string=? file "-"))
+ file)))))
;; We do this early so that we can abort early if necessary.
(and socket-file
(verify-dir (dirname socket-file) #:secure? secure))
- [shepherd] branch wip-fibers created (now 8664372), Ludovic Courtès, 2022/03/28
- [shepherd] 02/24: build: Drop support for Guile 2.0., Ludovic Courtès, 2022/03/28
- [shepherd] 03/24: Use Fibers., Ludovic Courtès, 2022/03/28
- [shepherd] 05/24: shepherd: Use one fiber for signal handling, and one for clients., Ludovic Courtès, 2022/03/28
- [shepherd] 08/24: shepherd: Encode log as UTF-8 unconditionally., Ludovic Courtès, 2022/03/28
- [shepherd] 10/24: doc: Fix inetutils cross-reference., Ludovic Courtès, 2022/03/28
- [shepherd] 12/24: service: Remove unused 'make-init.d-service'., Ludovic Courtès, 2022/03/28
- [shepherd] 13/24: service: Add the #:transient? slot., Ludovic Courtès, 2022/03/28
- [shepherd] 18/24: shepherd: Remove half-baked readline support.,
Ludovic Courtès <=
- [shepherd] 19/24: shepherd: "shepherd -s -" replies to the current output port., Ludovic Courtès, 2022/03/28
- [shepherd] 17/24: service: Add 'start-in-the-background'., Ludovic Courtès, 2022/03/28
- [shepherd] 14/24: service: Add inetd constructor and destructor., Ludovic Courtès, 2022/03/28
- [shepherd] 15/24: service: Allow 'running' value to be a thunk., Ludovic Courtès, 2022/03/28
- [shepherd] 20/24: service: Add #:handle-termination slot., Ludovic Courtès, 2022/03/28
- [shepherd] 22/24: service: 'make-inetd-constructor' lets the caller specify socket ownership., Ludovic Courtès, 2022/03/28
- [shepherd] 06/24: service: 'read-pid-file' no longer blocks., Ludovic Courtès, 2022/03/28
- [shepherd] 09/24: service: 'make-forkexec-constructor' spawns a logging fiber., Ludovic Courtès, 2022/03/28
- [shepherd] 16/24: service: Add systemd constructor and destructor., Ludovic Courtès, 2022/03/28
- [shepherd] 11/24: support: 'l10n' accepts plural forms., Ludovic Courtès, 2022/03/28