From unknown Tue Sep 23 17:00:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77943 <77943@debbugs.gnu.org> To: bug#77943 <77943@debbugs.gnu.org> Subject: Status: [PATCH 0/2] Using the Shepherd's system log on the Hurd Reply-To: bug#77943 <77943@debbugs.gnu.org> Date: Wed, 24 Sep 2025 00:00:16 +0000 retitle 77943 [PATCH 0/2] Using the Shepherd's system log on the Hurd reassign 77943 guix-patches submitter 77943 Ludovic Court=C3=A8s severity 77943 normal tag 77943 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 20 11:53:10 2025 Received: (at submit) by debbugs.gnu.org; 20 Apr 2025 15:53:10 +0000 Received: from localhost ([127.0.0.1]:51149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6Wyj-0001gc-9a for submit@debbugs.gnu.org; Sun, 20 Apr 2025 11:53:10 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33688) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6Wyf-0001eB-5U for submit@debbugs.gnu.org; Sun, 20 Apr 2025 11:53:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6WyX-0006l0-2x for guix-patches@gnu.org; Sun, 20 Apr 2025 11:52:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6WyW-0007FP-Cg; Sun, 20 Apr 2025 11:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=yn1UJvz5M2nYMskEtUQ3mm5vPuOisaiDlkR3ZR77JdI=; b=MrW7i8mq2TBkVh 2Nq4JBG55kzdK8MpFWFGegJ1e5G9G5LHfGm/lsyr4tz6xBkEOzyhHGUj3scKo3C1AY/8QqVh6tZut 09+6Y+11i8L2665+1zLo1BftBup9ztbpNitud6C3EzgBW+XUesE1kEg5+ik2/zCHTR/K3jQSPQJd+ SDYD9Ed48agy74XE93rvP8HJfyx99PgaxSGqy+kVPgJ7Q/EzfgjjSdZitJ8uL33fibuYDA8rq/7nq zv4s93/r4zxYrq7Wi9c9Av5LchD13lIYutaobfagAPaW1Etj4IcsRNuY4sPaoq2SUw1qT/rf997+/ oDQsFZZVPL5MfqOFiQxw==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/2] Using the Shepherd's system log on the Hurd Date: Sun, 20 Apr 2025 17:52:37 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Janneke Nieuwenhuizen Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Yelninei X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello! This changes the Hurd to use the Shepherd’s system log instead of syslogd from Inetutils, as is already the case on Linux. I wanted to try now that Yelninei and I have addressed most of the issues they reported in this area: . It works, but maybe we should hold on a bit though, because of this: --8<---------------cut here---------------start------------->8--- shepherd[1]: GNU Shepherd 1.0.4 (Guile 3.0.9, i586-pc-gnu) shepherd[1]: Starting service root... […] shepherd[1]: Service root-file-system running with value #t. shepherd[1]: Service root-file-system has been started. Uncaught exception in task: In fibers.scm: 172:8 7 (_) In shepherd/service/system-log.scm: 240:7 6 (run-system-log #< getq: # ?) In ice-9/suspendable-ports.scm: 681:11 5 (read-delimited _ _ _) 613:2 4 (read-char _) 184:27 3 (fill-input # _ _) 72:4 2 (read-bytes # #vu8(51 98 120 121 ?) ?) In unknown file: 1 (port-read # #vu8(51 98 120 121 ?) ?) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure fport_read: (os/device) operation would block --8<---------------cut here---------------end--------------->8--- It’s non-fatal but I think everything going to /dev/log after that is dismissed—IOW, the system log doesn’t log anything. There’s also the "\0" sender that appears in /var/log/messages: it works, but it’s not nice. I reported it on bug-hurd and hopefully it has an easy solution. Ludovic Courtès (2): services: shepherd: Provide the right #:kernel-log-file on the Hurd. system: hurd: Switch to the Shepherd’s system log. gnu/services/shepherd.scm | 9 +++++++++ gnu/system/hurd.scm | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) base-commit: d14663b94a7428eccbfa27aa620dc3d8ba67d752 -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 20 11:55:10 2025 Received: (at 77943) by debbugs.gnu.org; 20 Apr 2025 15:55:10 +0000 Received: from localhost ([127.0.0.1]:51186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6X0e-0001rx-CP for submit@debbugs.gnu.org; Sun, 20 Apr 2025 11:55:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35978) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6X0Z-0001qF-VE for 77943@debbugs.gnu.org; Sun, 20 Apr 2025 11:55:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6X0U-0007KG-Br; Sun, 20 Apr 2025 11:54:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=RjGU9LE5PE+HuPWrInangAk8IlTp4S9ARMELpRo5I4I=; b=N4SOMDe7Xi74a5bLMhFe uHiW7+4V4lm9hLM77yLT53gD0LyMOIsq5Fy15fd1/lu88fQMpeeNOS2nfhEX3NMea1iG+eyWeVnsY aOCaKvKS5apfY5OiG9YMDDZvAegjMwlE2JQfAAqClCWWr5FCeMEpO1wHE0MTJ6eqfthiibpQBE9dH Evns3HjG+0r6aORKzCIEwLTAa+aFs6S6uJ4UCqjU8NRccAD7FE9ulEqjqFuVWwQH/0Pdw0mC/n/5T NpUfzu9btXlwfVZg32cLWyG3zhE+sYo6oLXI1C4c3Hq+1TA6p/n7059vFknyd0byCb3Kq67mCZxlM GF0L/u+FPBParw==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 77943@debbugs.gnu.org Subject: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. Date: Sun, 20 Apr 2025 17:54:46 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77943 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , Yelninei X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/services/shepherd.scm (shepherd-system-log-service-type): Pass #:kernel-log-file. Reported-by: Yelninei Change-Id: I6f7a4b4e8e69a116069886e3879400d600645b30 --- gnu/services/shepherd.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm index c8e01c9d83..156a36c2da 100644 --- a/gnu/services/shepherd.scm +++ b/gnu/services/shepherd.scm @@ -781,6 +781,15 @@ (define shepherd-system-log-service-type (#f #~()) (value #~(#:message-destination #$value))) + ;; The Shepherd <= 1.0.4 chooses /proc/kmsg + ;; unconditionally. Fix that. + #:kernel-log-file + (cond ((string-contains %host-type "linux") ;Linux + "/proc/kmsg") + ((string-suffix? "-gnu" %host-type) ;GNU/Hurd + "/dev/klog") + (else #f)) + #:date-format #$date-format #:history-size #$history-size #:max-silent-time #$max-silent-time))))) -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 20 11:55:37 2025 Received: (at 77943) by debbugs.gnu.org; 20 Apr 2025 15:55:37 +0000 Received: from localhost ([127.0.0.1]:51191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6X15-0001zj-EM for submit@debbugs.gnu.org; Sun, 20 Apr 2025 11:55:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35982) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6X0a-0001qM-Mb for 77943@debbugs.gnu.org; Sun, 20 Apr 2025 11:55:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6X0V-0007KN-A8; Sun, 20 Apr 2025 11:54:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=D95yKshupXN3Emf8+2y2AZ9iFwfYJnql173TzXddpFc=; b=EsjyItDKu4D7e5MMy8tX iUHXbVmtLu6ZpUjsJ6JVzki75LjSEA6SesSqW7obrmc7Y0IhERvpD4wmIeLX4qRrRrS2lP/0Cc9KD pBvz9gSyt7CKyj5dQH5wnQYgjG7TPdm0UFj//nwzuVpjZieCdrgBIqVFipyXbNwX9BlmzYJHPpm3K 38hirCwMfliDnz++czjwVgSceIMAtxUiOyrm9JI/popnO4dattlBg/opPjYCOtiWKob/gWhlIlOVT n9EoWOxU1lyIYxJaJqAwLGD/nNTXeeP64V9Ip14IHefkogYgH0GcHbQhISQtrsRy1J9ipM13GNKIX or2r5WXDEhZnpA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 77943@debbugs.gnu.org Subject: [PATCH 2/2] =?UTF-8?q?system:=20hurd:=20Switch=20to=20the=20Sheph?= =?UTF-8?q?erd=E2=80=99s=20system=20log.?= Date: Sun, 20 Apr 2025 17:54:47 +0200 Message-ID: <061859f87aa8adc79b408425fe1f92f8c2118d3f.1745163830.git.ludo@gnu.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Janneke Nieuwenhuizen Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77943 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a followup to 8492a3c8962664db4bd0e7475f63be0ef59db87a. * gnu/system/hurd.scm (%base-services/hurd): Replace ‘syslog-service-type’ by ‘shepherd-system-log-service-type’. Change-Id: I3e12087a04f06210bd10b649b29fcf9949c5aa35 --- gnu/system/hurd.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/system/hurd.scm b/gnu/system/hurd.scm index c9df366f24..96b6a9a290 100644 --- a/gnu/system/hurd.scm +++ b/gnu/system/hurd.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2020-2024 Ludovic Courtès +;;; Copyright © 2020-2025 Ludovic Courtès ;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. @@ -100,7 +100,7 @@ (define %base-services/hurd `(("/bin/sh" ,(file-append bash "/bin/sh")) ("/usr/bin/env" ,(file-append coreutils "/bin/env")))) - (service syslog-service-type)) + (service shepherd-system-log-service-type)) (map (lambda (n) (service hurd-getty-service-type (hurd-getty-configuration -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 02 10:35:53 2025 Received: (at 77943) by debbugs.gnu.org; 2 Jun 2025 14:35:54 +0000 Received: from localhost ([127.0.0.1]:52539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uM6GX-0007tV-Di for submit@debbugs.gnu.org; Mon, 02 Jun 2025 10:35:53 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:53374) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uM6GU-0007sq-EK for 77943@debbugs.gnu.org; Mon, 02 Jun 2025 10:35:51 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 12811905D69F for <77943@debbugs.gnu.org>; Mon, 2 Jun 2025 16:35:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1748874942; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=H28s7tiFQf8Ir3ONW7pKd8arlPzcUZcDQOh6ql+zgAA=; b=ea7S0pVAzL0dY081OHcnvaNRMyIxSWGr0ck3mGBrbraR7E9hfbtF5M1CjNiR3tBg wllh52aPAj3rrS5onBERIAztuyTnrfbEf9fUbybMCl3MnINKdF3EGFpWMMD7zlDJ2x/ 9mC95lExSZyjN/jzBukOu30uNyTJdnw4SOmpi0XLzfClcKzLspsxwmBv8e7KAv+AN8S 3A4yHVHnl30oKfU2r9PbwijkxW3GVyx4uYQntO7s6+mjh6kQnNWpotHazgk8ay+rTcw jzdMCHpyHj5ifhaHcehqB/csyf6F1lreXet994Hboao9MkSYRdEZi9qTOtJWSUQkqa4 kS07I0rr/A== Date: Mon, 2 Jun 2025 16:35:42 +0200 (CEST) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: References: Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Ludo, I am a bit late to this: Does it still make sense to duplicate the default kernel-log-file in guix a= nd shepherd now that 1.0.5 is available? The issue with=C2=A0ED_WOULD_BLOCK is still present on hurd-0.9.git20250420= on core-packages-team.=C2=A0 I tried it for a while with #:kernel-log-file set to #f and it felt like it= was slowing down shepherd significantly enough to be mildly annoying but i= dk if this is something I only noticed because I was actively looking for c= hanges. Apr 20, 2025, 15:54 by ludo@gnu.org: > * gnu/services/shepherd.scm (shepherd-system-log-service-type): > Pass #:kernel-log-file. > > Reported-by: Yelninei > Change-Id: I6f7a4b4e8e69a116069886e3879400d600645b30 > --- > gnu/services/shepherd.scm | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/gnu/services/shepherd.scm b/gnu/services/shepherd.scm > index c8e01c9d83..156a36c2da 100644 > --- a/gnu/services/shepherd.scm > +++ b/gnu/services/shepherd.scm > @@ -781,6 +781,15 @@ (define shepherd-system-log-service-type > (#f #~()) > (value #~(#:message-destination #$value))) > > + ;; The Shepherd <=3D 1.0.4 chooses /proc/= kmsg > + ;; unconditionally. Fix that. > + #:kernel-log-file > + (cond ((string-contains %host-type "linux= ") ;Linux > + "/proc/kmsg") > + ((string-suffix? "-gnu" %host-type)= ;GNU/Hurd > + "/dev/klog") > + (else #f)) > + > #:date-format #$date-format > #:history-size #$history-size > #:max-silent-time #$max-silent-time))))) > -- > 2.49.0 > From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 02 12:10:00 2025 Received: (at 77943) by debbugs.gnu.org; 2 Jun 2025 16:10:01 +0000 Received: from localhost ([127.0.0.1]:53342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uM7jc-0006VX-1S for submit@debbugs.gnu.org; Mon, 02 Jun 2025 12:10:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49406) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uM7jZ-0006VC-Iz for 77943@debbugs.gnu.org; Mon, 02 Jun 2025 12:09:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uM7jT-0006pP-Hy; Mon, 02 Jun 2025 12:09:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=jLwOCbjSdYvZfajpIB8WHDUXe9PpsZ7mdNoofNLxfho=; b=I+IRSbYUzDME45Yz5xgX PEzNAi9njMD+y8UqeImWY5wWCagFcL9HjnrUe1bXtCWF2C36BsakC/7KJHuKnqr/VpSgwUZ9mq5O8 E9vN6o/tLiRhJPIGPph4NeGQQHDObYz7Tpd1Kd1is1b034HaGDtPj+EBK6bn0mSlbiNrirlxqnzge hfDgmxsRKRKFlG2Gmi1V8dFj+SfEeF9MmMR2eUfb27I6B8PeF4zTVHzAA2oyn2vfui6ed3SSF8nkA Opsuh0SpKLG9aKextiHMKpJs9nqiaDlAmU34EUBcihRAprDURxuaLJoFCegoQgcOXw5s6ukmwfKfP IXCzGOlGT8e+Rg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: yelninei@tutamail.com Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. In-Reply-To: (yelninei@tutamail.com's message of "Mon, 2 Jun 2025 16:35:42 +0200 (CEST)") References: User-Agent: mu4e 1.12.11; emacs 29.4 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: Quartidi 14 Prairial an 233 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Acacia Date: Mon, 02 Jun 2025 17:01:37 +0200 Message-ID: <87cybmp4q6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, yelninei@tutamail.com writes: > Does it still make sense to duplicate the default kernel-log-file in guix= and shepherd now that 1.0.5 is available? No, it=E2=80=99s no longer necessary. > The issue with=C2=A0ED_WOULD_BLOCK is still present on hurd-0.9.git202504= 20 on core-packages-team.=C2=A0 Right, I started looking into it back then but then didn=E2=80=99t take the= time to track it down. > I tried it for a while with #:kernel-log-file set to #f and it felt > like it was slowing down shepherd significantly enough to be mildly > annoying but idk if this is something I only noticed because I was > actively looking for changes. How did you notice that it was slowing down? That was with 1.0.5, right? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 02 16:02:41 2025 Received: (at 77943) by debbugs.gnu.org; 2 Jun 2025 20:02:41 +0000 Received: from localhost ([127.0.0.1]:55445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uMBMn-00080g-Au for submit@debbugs.gnu.org; Mon, 02 Jun 2025 16:02:41 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:34532) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uMBMj-000809-UU for 77943@debbugs.gnu.org; Mon, 02 Jun 2025 16:02:38 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id D522490859D7 for <77943@debbugs.gnu.org>; Mon, 2 Jun 2025 22:02:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1748894521; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=rBfmXgQO3iGgf5ltKdi9RNdo2KGVtTJTTC91UaWOqkU=; b=iVawMyPEf+Y1/6K5KzecRAEN+aRCk8uib3WdJZsSzP6PlQkN6vhS1auhJXdlOojN JOEV95ePrsoyv+A6bPIVm+k4oyvtl3IU2imlotkMlG/vg70KBoBT0WjpCG5oG+gj00D cBa+8vGeZl8c2WWdueDPeLrI3d5UFo5+IVomQSC2BIbKEBdaSm4+iNN+mEq3jvciDzZ /fo6X+9qm0j0FYMA7njbfaWc4hwTIpTA0iImlJhpM1AxBs8Qu/wHOKPOd0rDSsfFO7K XjS7FqnNHxlGXcitLa6Fuh9AWbgU+phJLwiRQY5gsPH9f2LCiNlw+2wubm6b/cg94vK 5NoY2TdY1g== Date: Mon, 2 Jun 2025 22:02:01 +0200 (CEST) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: <87cybmp4q6.fsf@gnu.org> References: <87cybmp4q6.fsf@gnu.org> Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Jun 2, 2025, 16:09 by ludo@gnu.org: > The issue with=C2=A0ED_WOULD_BLOCK is still present on hurd-0.9.git202504= 20 on core-packages-team.=C2=A0 > > Right, I started looking into it back then but then didn=E2=80=99t take t= he time > to track it down. > >> I tried it for a while with #:kernel-log-file set to #f and it felt >> like it was slowing down shepherd significantly enough to be mildly >> annoying but idk if this is something I only noticed because I was >> actively looking for changes. >> > > How did you notice that it was slowing down? That was with 1.0.5, > right? > I dont know if I am just imagining this but anything ssh related felt a bit= laggy but idk how the syslog should cause this except that sshd logs to sy= slog and shepherd is also managing the sshd socket. Also things like herd status felt a lot slower. But all of this was not really consistent and I dont know if I am just maki= ng this up so this might be all wrong. No this was all with 1.0.4, tested this on master around when you sent the = initial version. And on core-packages-team shepherd is still 1.0.4. > Thanks, > Ludo=E2=80=99. > From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 10 05:51:09 2025 Received: (at 77943) by debbugs.gnu.org; 10 Jun 2025 09:51:09 +0000 Received: from localhost ([127.0.0.1]:34548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOvdM-0003RL-Ax for submit@debbugs.gnu.org; Tue, 10 Jun 2025 05:51:09 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:34432) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uOvdI-0003Pi-4j for 77943@debbugs.gnu.org; Tue, 10 Jun 2025 05:51:05 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 8E3C6940B9F2 for <77943@debbugs.gnu.org>; Tue, 10 Jun 2025 11:50:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1749549027; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=t+F5Gh0Itpit7mozM3Y5Bh0csM5kOHMxARoOg+djmGk=; b=SFdbj5YZw49AshILKWBF05VwBtCnlgktAmRrNm+IYLzGltmKCOZg8bGwvu2EW0JK Ee4+cFkNnWlTJS+Ks02+ozCSHkA9bDFMwZvQ8cUwlQD0g5s0N907V+uT0+PxVkxu/LZ xjHHIjA5vYpP/IcXCvDkeRUQXwNv3ULg8ye4PJV0ePDKq/QF1JBXzaZ63HIHyoPnv+o v4JLXHqIt3PvY0QfuClLU3Ht/ys9jK0i5TnTHG8hl+nmhp8bfULiqg+4YGtxx8HUQqH fJBGHK9TFZGWXWYY9/om/smvZgo6TdlUzd7ecPaPbUvwED9wwFC4gbOENCpUYM7SujQ wNQLz55/8Q== Date: Tue, 10 Jun 2025 11:50:27 +0200 (CEST) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: <87cybmp4q6.fsf@gnu.org> References: <87cybmp4q6.fsf@gnu.org> Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello Ludo, Jun 2, 2025, 16:09 by ludo@gnu.org: > Hi, > > Right, I started looking into it back then but then didn=E2=80=99t take t= he time > to track it down. > I tried your patch that you sent to bug-hurd but I still end up with D_WOUL= D_BLOCK at the end. Was it working for you? As pointed out by Samuel on bug-hurd the initial "if (err) return err" look= s weird. I tried removing it and at the end of /dev/klog it died with SIGLO= ST. I then tried this patch similar to yours to intercept D_WOULD_BLOCK at the = beginning instead: diff --git a/trans/streamio.c b/trans/streamio.c index e42ff908..ee3cf9b4 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -1005,7 +1005,12 @@ dev_read (size_t amount, void **buf, size_t *len, in= t nowait) =C2=A0=C2=A0 size_t max, avail; =C2=A0 =C2=A0=C2=A0 if (err) -=C2=A0=C2=A0=C2=A0 return err; +=C2=A0=C2=A0=C2=A0 { +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (err =3D=3D D_WOULD_BLOCK) +=09=C2=A0 return EWOULDBLOCK; +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 else +=09=C2=A0 return err; +=C2=A0=C2=A0=C2=A0 } =C2=A0 =C2=A0=C2=A0 while (!buffer_readable (input_buffer)) =C2=A0=C2=A0=C2=A0=C2=A0 { and my example now fails with EAGAIN. I am not sure yet what is setting this, the joy of global variables. However something still seems wrong when I added back the shepherd syslog. = It still crashes/hangs when it reaches the initial end of /dev/klog and doe= s not process messages further:=20 there is an extra message and e.g. sshd messages to the syslog dont get pro= cessed. root@childhurd ~# ./main irq handler [11]: new delivery port f5e44038 entry f4f39840 errno: Resource temporarily unavailable To be continued. Note: I had to add the patch to the default hurd and just patching the hurd= package that is used in operating-system-hurd was not enough. Dont know wh= at is up with that. > Thanks, > Ludo=E2=80=99. > From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 10 08:55:50 2025 Received: (at 77943) by debbugs.gnu.org; 10 Jun 2025 12:55:50 +0000 Received: from localhost ([127.0.0.1]:37232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOyW6-0005zv-13 for submit@debbugs.gnu.org; Tue, 10 Jun 2025 08:55:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40994) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uOyW2-0005ze-8B for 77943@debbugs.gnu.org; Tue, 10 Jun 2025 08:55:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uOyVw-0002Ty-Gm; Tue, 10 Jun 2025 08:55:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=z94Tz2ckCvskd3zFiXgdDyOASkA4fVkx9pLQXdX73JU=; b=NkdBPAwZD63rMmEW7CP2 mmUTxEg7vz6xnE0wcy1X3Wdh/eWvp8NlKK38pzmunAlKTLPg7XG7GMq2J18IOSovc/NfS0BgzOgw0 B8tDckhoNTrHQGJ8KuUCHfItpGJmnwXwfEXKnlNZVHpE2Q+K+6979icfGFmStVjf45HFGgLk0JOQ0 NcexMTipzyCUw1RdElOOQJ3Ao1HLSu388Gscu9GSMc5xTfqf+5SmvFbfQoA18S3B+b8kDuEVIFfCx ht8a3w3kk3jpvSMaQ8ryctW7mDTLCUc69pGRycB5GFseSaIbXMF3AADmm3igeVleFcnsPoufmu7ck 9GFiQlZKrsT10w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: yelninei@tutamail.com Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. In-Reply-To: (yelninei@tutamail.com's message of "Tue, 10 Jun 2025 11:50:27 +0200 (CEST)") References: <87cybmp4q6.fsf@gnu.org> User-Agent: mu4e 1.12.11; emacs 29.4 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: Duodi 22 Prairial an 233 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de la Camomille Date: Tue, 10 Jun 2025 14:46:44 +0200 Message-ID: <87frg7kbm3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Yelninei, yelninei@tutamail.com writes: > I tried your patch that you sent to bug-hurd but I still end up with D_WO= ULD_BLOCK at the end. Was it working for you? No no, it wasn=E2=80=99t, but I haven=E2=80=99t taken the time to dig furth= er. > As pointed out by Samuel on bug-hurd the initial "if (err) return err" lo= oks weird. I tried removing it and at the end of /dev/klog it died with SIG= LOST. [...] > and my example now fails with EAGAIN. I=E2=80=99m not sure what example but EAGAIN is fine, it=E2=80=99s what we = want. Thanks for investigating! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 10 10:56:49 2025 Received: (at 77943) by debbugs.gnu.org; 10 Jun 2025 14:56:50 +0000 Received: from localhost ([127.0.0.1]:39103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uP0PA-00089Z-1E for submit@debbugs.gnu.org; Tue, 10 Jun 2025 10:56:49 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:51802) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uP0P7-000884-2i for 77943@debbugs.gnu.org; Tue, 10 Jun 2025 10:56:45 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 17480943099E for <77943@debbugs.gnu.org>; Tue, 10 Jun 2025 16:56:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1749567398; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=7MIMsKjkZxHUFjPhSFT+2Rrc18jRYl1XpkcHtQrOhCA=; b=z8JIIXea0WLaUFP2MzKKSrb1K/fOMRQC4NU+4PVzdWSSrOBJVUN1ph4iTCi0e3Jo JRN6ArzHhTW7siL9FmB3ZjigC8MdHadxbrAJmVi2xsQ3B51+IyjwZz9x4JcmXftPqSg QPi6U4NdQi+vEYFJEG63VWN++P0w7utGT5Qcy22nbytCddFl29ufeT58oXZ83jIyD7z RRGK1OMbilubVY4a0vRVi6j8hJLP6NhXUzAIbSnHAfLYkzaBU0U/uRdaVhuRI0y/pvE krrNGgMkN/8lgmODlXf+cWQP4TLDCN7h2MPNC05fLhGzC0/HLCuPAWSe7I3oAbmgAUe +OFIscufVg== Date: Tue, 10 Jun 2025 16:56:38 +0200 (GMT+02:00) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: <87frg7kbm3.fsf@gnu.org> References: <87cybmp4q6.fsf@gnu.org> <87frg7kbm3.fsf@gnu.org> Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Jun 10, 2025, 12:55 by ludo@gnu.org: > Hi Yelninei, > > yelninei@tutamail.com writes: > >> I tried your patch that you sent to bug-hurd but I still end up with D_W= OULD_BLOCK at the end. Was it working for you? >> > > No no, it wasn=E2=80=99t, but I haven=E2=80=99t taken the time to dig fur= ther. > >> As pointed out by Samuel on bug-hurd the initial "if (err) return err" l= ooks weird. I tried removing it and at the end of /dev/klog it died with SI= GLOST. >> > > [...] > >> and my example now fails with EAGAIN. >> > > I=E2=80=99m not sure what example but EAGAIN is fine, it=E2=80=99s what w= e want. > The example is just some terrible C code that runs fgets in a loop. When I try something similar with guile and (@ (ice-9 rdelim) read-line) it= seems to block forever at the "last" line. =C2=A0From the C example that last line seems to be missing a terminating n= ewline and I am thinking read-line cannot handle this situation when the de= liminator is just EAGAIN so the port is never handed of to fibers (fport_re= ad which was erroring before seems to return -1=C2=A0 in this case as a ssi= ze_t cast to size_t which also seems wrong ). Further investigation required. > Thanks for investigating! > > Ludo=E2=80=99. > Yelninei From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 10:01:38 2025 Received: (at 77943) by debbugs.gnu.org; 2 Aug 2025 14:01:38 +0000 Received: from localhost ([127.0.0.1]:36738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uiCnp-0002TF-Kg for submit@debbugs.gnu.org; Sat, 02 Aug 2025 10:01:37 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:57750) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uiCnn-0002Pj-DM for 77943@debbugs.gnu.org; Sat, 02 Aug 2025 10:01:35 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id E3A75ACD6025 for <77943@debbugs.gnu.org>; Sat, 2 Aug 2025 16:00:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1754143258; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=64jImghiStaiXcakDitJ03SAC3I04Ff1r4CMCc1H/3E=; b=CpjVoxfonoriIb9u1LW6AGxCHhKBodSUcJ+/XrLnQYzMPgdWk7RSWGriL4f62B+G /yqbXp/PCsXXaHFnCY0RN8xJsXlKucWOd7clBx0EXKtugJdlhWh7Mj6Dwn8ugCPRgKw UzcPSkyMBIMwhYb8LSZXi5ErjSTpCkd04XmzXCL71jPO3fRmTUBuJf0HwdGmcM15WbM Lv3vzUasYuOezSWvGrrhSbaOQvDmEBpuRdxv5z0sPoHnBQnEIMgKgGo23px9C2uflPU uunY5N3TxtUXzxbVvIgWat9umTiL1E3gkcfkCKGGJ18KMhS+z46hfMoilZFzHRhO6zV mWayLhl9Sg== Date: Sat, 2 Aug 2025 16:00:58 +0200 (CEST) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: References: <87cybmp4q6.fsf@gnu.org> <87frg7kbm3.fsf@gnu.org> Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Ludo, I found where the error gets set (debugging global variables is not fun) As a reminder we get the D_WOULD_BLOCK error back from the initial=20 if(err) =C2=A0 =C2=A0 return err; check in dev_read. In our case this comes from device_read_reply_inband from the errorcode par= ameter. I am not yet sure where/how this gets called. My little C example now returns EWOULDBLOCK when reaching the "end" of /dev= /klog. However this does not really help the shepherd syslog because guile's read-= line blocks forever waiting for a terminating newline. Also guile is unawar= e that further attempts to read would EWOULDBLOCK as "(select (vector port)= #() #() 0)" indicates that reading is possible but then actually trying to= a get a char blocks. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 17 11:20:03 2025 Received: (at 77943) by debbugs.gnu.org; 17 Aug 2025 15:20:03 +0000 Received: from localhost ([127.0.0.1]:47180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unfAw-0007WD-S7 for submit@debbugs.gnu.org; Sun, 17 Aug 2025 11:20:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48346) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unfAt-0007VY-7O for 77943@debbugs.gnu.org; Sun, 17 Aug 2025 11:20:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1unfAn-0007sh-It; Sun, 17 Aug 2025 11:19:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=oixzG5K7h0oQk6d3uU8BhGn2Z7FZ2lm8+2+CupyO/Zk=; b=T0LpaBE43KyZ6WPUhQ4K aDDQMlQJZhM8iLISwYxzrK1wfEzkcOsarxARnQS2RpxTm0KoXX1+QE9bPtpnO5LH28N0ymbw2KacP fWEJOEDL/znoHm8Dp2cXpzfL9glLo4RXzOqTD2b5EeydwfVErcbgKFz97QmhMsGX5ZdNddSh7Ci0o TBWlJXlRzA41iVCnkMhdWJb+8WP1IzL0zSmEOEPbrHShhjr+INhYp7PtcssMpw5wmv8Lo2pF2tl6m PHshJmvUg74id/bgvUkARbEvA34eJb2R/5tZS2QiVbMktNiNyf5zMf6UyMcG17g3tYxMlFqOM91pC U2bFOzMtywMqZQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: yelninei@tutamail.com Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. In-Reply-To: (yelninei@tutamail.com's message of "Sat, 2 Aug 2025 16:00:58 +0200 (CEST)") References: <87cybmp4q6.fsf@gnu.org> <87frg7kbm3.fsf@gnu.org> User-Agent: mu4e 1.12.11; emacs 30.1 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 30 Thermidor an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Moulin Date: Sun, 17 Aug 2025 17:11:23 +0200 Message-ID: <87sehqq8ys.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, yelninei@tutamail.com writes: > I found where the error gets set (debugging global variables is not fun) > > As a reminder we get the D_WOULD_BLOCK error back from the initial=20 > > if(err) > =C2=A0 =C2=A0 return err; > check in dev_read. > > In our case this comes from device_read_reply_inband from the errorcode p= arameter. I am not yet sure where/how this gets called. > > My little C example now returns EWOULDBLOCK when reaching the "end" of /d= ev/klog. So you have a patch for /hurd/streamio and a C reproducer? (Maybe you sent it already and I haven=E2=80=99t seen.) > However this does not really help the shepherd syslog because guile's > read-line blocks forever waiting for a terminating newline. Also guile > is unaware that further attempts to read would EWOULDBLOCK as "(select > (vector port) #() #() 0)" indicates that reading is possible but then > actually trying to a get a char blocks. Ah but I think that=E2=80=99s fine: shepherd, suspendable ports are enabled= (via Fibers), which means that read attempts that return EAGAIN or EWOULDBLOCK result in the calling fiber being suspended. You would need to try this for real, but it should be fine. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 17 14:47:25 2025 Received: (at 77943) by debbugs.gnu.org; 17 Aug 2025 18:47:25 +0000 Received: from localhost ([127.0.0.1]:47925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uniPc-0004mm-HY for submit@debbugs.gnu.org; Sun, 17 Aug 2025 14:47:24 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:55910) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uniPZ-0004mT-1i for 77943@debbugs.gnu.org; Sun, 17 Aug 2025 14:47:22 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 12B70B3B28C7 for <77943@debbugs.gnu.org>; Sun, 17 Aug 2025 20:46:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1755456404; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=GXmh8i8ezdgQxfAE8S1nPvURAxoNJRK42CWSbbPas8c=; b=s+VV8B7MDzYvXYirmMIc9g4tcrylNqFIy/GJwKF+iwdihXxXnjtwJY0y+bkwC9Kg XZGcMRT5fAEHPUQbQnPJZweYjgVCA2h4UV3aA9qKskBdtIqN9cKJQsA6YhRMXi6t/Cx LLpjxDLBQhFF7oBUFwA3Lp1BHa3y6AHsWObKb+vEeHaG26zJRZ2l3wW05xJ/I9F+SuM /qnBK+gDmkj1cewv7XlaNX8A9azGonfmCcysb0FTBbh8hzjaRV2eOWWkIcl+gAOfKoT tJU2y4vVnyqLVICsdm72KQ/N/A2HIKB8CaWqoRTRBy746++mcY0mGC6Ntnf7wDeVIpW /DF0Z5NGFQ== Date: Sun, 17 Aug 2025 20:46:44 +0200 (CEST) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: <87sehqq8ys.fsf@gnu.org> References: <87cybmp4q6.fsf@gnu.org> <87frg7kbm3.fsf@gnu.org> <87sehqq8ys.fsf@gnu.org> Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi. Aug 17, 2025, 15:19 by ludo@gnu.org: > > > So you have a patch for /hurd/streamio and a C reproducer? (Maybe you > sent it already and I haven=E2=80=99t seen.) > No i have not sent this: Something like this fixes the D_WOULD_BLOCK errno. --8<---------------cut here---------------start------------->8--- diff --git a/trans/streamio.c b/trans/streamio.c index e42ff908..93057146 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -1049,6 +1049,8 @@ device_read_reply_inband (mach_port_t reply, kern_ret= urn_t errorcode, =C2=A0 =C2=A0=C2=A0 input_pending =3D 0; =C2=A0=C2=A0 err =3D errorcode; +=C2=A0 if (err =3D=3D D_WOULD_BLOCK) +=C2=A0=C2=A0=C2=A0 err =3D EWOULDBLOCK; =C2=A0=C2=A0 if (!err) =C2=A0=C2=A0=C2=A0=C2=A0 { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (datalen =3D=3D 0) --8<---------------cut here---------------end--------------->8--- Some c code that runs fgets in a loop until an error --8<---------------cut here---------------start------------->8--- #include #include #include #include #include #include #define _PATH_KLOG "/dev/klog" int main () { =C2=A0 ssize_t n; =C2=A0 int fd; =C2=A0 =C2=A0 fd =3D open(_PATH_KLOG, O_RDONLY | O_NONBLOCK | O_CLOEXEC); =C2=A0 if (fd < 0) =C2=A0=C2=A0=C2=A0 { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 perror("open"); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 exit(EXIT_FAILURE); =C2=A0=C2=A0=C2=A0 } =C2=A0 FILE* file =3D fdopen(fd, "r"); =C2=A0=C2=A0 =C2=A0 char* line; =C2=A0 int line_max =3D 1024; =C2=A0 line =3D malloc(line_max +1); =C2=A0 if(line =3D=3D NULL) =C2=A0=C2=A0=C2=A0 { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 perror("malloc"); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 exit(EXIT_FAILURE); =C2=A0=C2=A0=C2=A0 } =C2=A0 // The first read always fails with EWOUDLBLOCK =C2=A0 fgets(line, line_max +1 , file); =C2=A0 perror("fgets"); =C2=A0 errno =3D 0; =C2=A0 while(fgets(line, line_max +1 , file) !=3D NULL) =C2=A0=C2=A0=C2=A0 { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 printf("%s", line); =C2=A0=C2=A0=C2=A0 } =C2=A0 perror("fgets"); =C2=A0=C2=A0 =C2=A0 free(line); =C2=A0 close(fd); =C2=A0 exit(EXIT_SUCCESS); } --8<---------------cut here---------------end--------------->8--- I am using `(cross-gcc-toolchain "i586-pc-gnu")` to get a cross compiler wi= th a bit of a hack to remove the %hurd-system supported-system restriction = from the hurd and mach headers. >> However this does not really help the shepherd syslog because guile's >> read-line blocks forever waiting for a terminating newline. Also guile >> is unaware that further attempts to read would EWOULDBLOCK as "(select >> (vector port) #() #() 0)" indicates that reading is possible but then >> actually trying to a get a char blocks. >> > > Ah but I think that=E2=80=99s fine: shepherd, suspendable ports are enabl= ed (via > Fibers), which means that read attempts that return EAGAIN or > EWOULDBLOCK result in the calling fiber being suspended. > > You would need to try this for real, but it should be fine. > It is fine in the sense that fibers suspends the system-log successfully at= the "end" of /dev/klog. However It is not fine because it will never wake up it up again.=20 According to the c example it now returns EWOULDBLOCK as expected.From test= ing around a bit I think it might be (@ (ice-9 rdelim) read-line) waiting f= or a terminating newline. And again when I retried this just now there was the noticable delay with a= nything shepherd when the shepherd-syslog is running (default (system-log-c= onfiguration) configuration) > Thanks! > > Ludo=E2=80=99. > From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 25 15:53:53 2025 Received: (at 77943) by debbugs.gnu.org; 25 Aug 2025 19:53:53 +0000 Received: from localhost ([127.0.0.1]:51387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uqdGK-0001TN-S0 for submit@debbugs.gnu.org; Mon, 25 Aug 2025 15:53:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40750) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uqdGH-0001T4-6x for 77943@debbugs.gnu.org; Mon, 25 Aug 2025 15:53:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uqdG7-0006X0-Qt; Mon, 25 Aug 2025 15:53:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=jqC8k+0WwUc47YjukntblY66g5lVD8HwToC/U69FpKA=; b=n5wk7djYMKM53KQINmrX x0/GBrbIqq3ixhvMNPA95IxaPXjo0AVazzC1F8O2ZKnC2AzCGqtQEnxO7ZwnIybZfmsyzEQ2rF2WJ yUObSrGrebUwo302iHo9oU0nO22LyMi8ejrJ4t748g8/K8ESFYxsiTfzIhR/dB43iU8Vo06XT/kG6 lViZlkGatZJnrvjcdzKzEJa5KAA7yszwt8/KbwJC1LTTceuk1hSZ2tlmgSjQWcbQxocTlerOTvOcz BFrjFUe91iIjhRSeytmhkyU9+0qAyWNKWJgSeGX3GdKPtEjrFR9cpXHEuSfrPYTPpM/eO70Vle/+Q bw1tDRrcJ/cTOg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: yelninei@tutamail.com Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. In-Reply-To: (yelninei@tutamail.com's message of "Sun, 17 Aug 2025 20:46:44 +0200 (CEST)") References: <87cybmp4q6.fsf@gnu.org> <87frg7kbm3.fsf@gnu.org> <87sehqq8ys.fsf@gnu.org> User-Agent: mu4e 1.12.11; emacs 30.1 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: Octidi 8 Fructidor an 233 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de l'Apocyn Date: Mon, 25 Aug 2025 21:52:59 +0200 Message-ID: <87jz2rkwkk.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, yelninei@tutamail.com writes: > No i have not sent this: > Something like this fixes the D_WOULD_BLOCK errno. > --8<---------------cut here---------------start------------->8--- > diff --git a/trans/streamio.c b/trans/streamio.c > index e42ff908..93057146 100644 > --- a/trans/streamio.c > +++ b/trans/streamio.c > @@ -1049,6 +1049,8 @@ device_read_reply_inband (mach_port_t reply, kern_r= eturn_t errorcode, > =C2=A0 > =C2=A0=C2=A0 input_pending =3D 0; > =C2=A0=C2=A0 err =3D errorcode; > +=C2=A0 if (err =3D=3D D_WOULD_BLOCK) > +=C2=A0=C2=A0=C2=A0 err =3D EWOULDBLOCK; > =C2=A0=C2=A0 if (!err) > =C2=A0=C2=A0=C2=A0=C2=A0 { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (datalen =3D=3D 0) > --8<---------------cut here---------------end--------------->8--- Neat! You should send this and the C reproducer to bug-hurd. :-) > It is fine in the sense that fibers suspends the system-log successfully = at the "end" of /dev/klog. > However It is not fine because it will never wake up it up again.=20 > According to the c example it now returns EWOULDBLOCK as expected.From te= sting around a bit I think it might be (@ (ice-9 rdelim) read-line) waiting= for a terminating newline. > And again when I retried this just now there was the noticable delay with= anything shepherd when the shepherd-syslog is running (default (system-log= -configuration) configuration) Great. So=E2=80=A6 mission accomplished? Thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 26 12:17:34 2025 Received: (at 77943) by debbugs.gnu.org; 26 Aug 2025 16:17:34 +0000 Received: from localhost ([127.0.0.1]:56267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uqwMX-0000PY-Jy for submit@debbugs.gnu.org; Tue, 26 Aug 2025 12:17:33 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:42308) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uqwMR-0000PC-RT for 77943@debbugs.gnu.org; Tue, 26 Aug 2025 12:17:29 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 7234BB7FF707 for <77943@debbugs.gnu.org>; Tue, 26 Aug 2025 18:16:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1756225010; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=+kGR0bdar49iN08zGQ6oXFftSaYdI2c8w+AhBd98EH0=; b=tOn5/iTR/1R/FpERq4r4JboBY7MkTf9aEKqlqpkR6tZIW7HKY85kqDz4lwGwlcnf TBaytWSW6WXQ7HCfyfBidzDFbkCWjzxvfbcMduxZo9pn5Herz18NIvEGOO5iH/Vt6oG cMUYFwqHgeJqu/ycTkt9XMaEEXo68yuzxMgYqUL10Bb/360uI8KWqTfIfVBFU4gph7g 8A6vP9FVRAqrcaO/elJFYDVVXjLyEFRPJoaqhYEgZO0szeO9rGQRgicv4lRdSQbJcfI D6liDoOJV1WnEV1BYLbrd2EtGBxjJWjbCMgvaKr+Yvbrt0TTOkf6oR+H/cgEGCsX3hp M5jarFPkiw== Date: Tue, 26 Aug 2025 18:16:50 +0200 (CEST) From: yelninei@tutamail.com To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Message-ID: In-Reply-To: <87jz2rkwkk.fsf@gnu.org> References: <87cybmp4q6.fsf@gnu.org> <87frg7kbm3.fsf@gnu.org> <87sehqq8ys.fsf@gnu.org> <87jz2rkwkk.fsf@gnu.org> Subject: Re: [PATCH 1/2] services: shepherd: Provide the right #:kernel-log-file on the Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 77943 Cc: 77943 <77943@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Aug 25, 2025, 19:53 by ludo@gnu.org: > Hello, > > yelninei@tutamail.com writes: > >> No i have not sent this: >> Something like this fixes the D_WOULD_BLOCK errno. >> --8<---------------cut here---------------start------------->8--- >> diff --git a/trans/streamio.c b/trans/streamio.c >> index e42ff908..93057146 100644 >> --- a/trans/streamio.c >> +++ b/trans/streamio.c >> @@ -1049,6 +1049,8 @@ device_read_reply_inband (mach_port_t reply, kern_= return_t errorcode, >> =C2=A0 >> =C2=A0=C2=A0 input_pending =3D 0; >> =C2=A0=C2=A0 err =3D errorcode; >> +=C2=A0 if (err =3D=3D D_WOULD_BLOCK) >> +=C2=A0=C2=A0=C2=A0 err =3D EWOULDBLOCK; >> =C2=A0=C2=A0 if (!err) >> =C2=A0=C2=A0=C2=A0=C2=A0 { >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (datalen =3D=3D 0) >> --8<---------------cut here---------------end--------------->8--- >> > > Neat! You should send this and the C reproducer to bug-hurd. :-) > >> It is fine in the sense that fibers suspends the system-log successfully= at the "end" of /dev/klog. >> However It is not fine because it will never wake up it up again.=20 >> According to the c example it now returns EWOULDBLOCK as expected.From t= esting around a bit I think it might be (@ (ice-9 rdelim) read-line) waitin= g for a terminating newline. >> And again when I retried this just now there was the noticable delay wit= h anything shepherd when the shepherd-syslog is running (default (system-lo= g-configuration) configuration) >> > > Great. So=E2=80=A6 mission accomplished? > Not really. The system-log still stops working when it reaches the EWOULDBL= OCK at the end of of the kernel log. I think it has to do with the incomplete last message that is causing the s= ystem-log fiber to be suspended at the wrong time but I don't really know. I have sent the diff to bug-hurd and also asked about the missing \n there. > Thank you! > > Ludo=E2=80=99. >