From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqRKU-0000pu-Q6 for guix-patches@gnu.org; Mon, 26 Feb 2018 17:33:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqRKQ-0005Th-OO for guix-patches@gnu.org; Mon, 26 Feb 2018 17:33:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:54401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqRKQ-0005TX-KR for guix-patches@gnu.org; Mon, 26 Feb 2018 17:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eqRKQ-0000Jj-6H for guix-patches@gnu.org; Mon, 26 Feb 2018 17:33:02 -0500 Subject: [bug#30498] [WIP v2 shepherd] shepherd: If /dev/kmsg is writable, use it for logging. Resent-Message-ID: Date: Mon, 26 Feb 2018 23:32:14 +0100 From: Danny Milosavljevic Message-ID: <20180226233214.6fe40fa3@scratchpost.org> In-Reply-To: <87muzvtyo3.fsf@gnu.org> References: <20180217122035.1443-1-dannym@scratchpost.org> <20180217164835.1178-1-dannym@scratchpost.org> <87muzvtyo3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30498@debbugs.gnu.org Hi Ludo, > As for cryptsetup, what if the service that runs crypsetup simply > parameterizes =E2=80=98log-output-port=E2=80=99 to /dev/console? That wo= uld give us the > current behavior, right? I don't understand why this current-output-port stuff is somehow passed on = to forked processes in the first place (why does cryptsetup care what I do to guile variables?). scheme@(guile-user)> (current-output-port (%make-void-port "w")) scheme@(guile-user)> (system* "ls" "/") scheme@(guile-user)> WTF? It wasn't my intention to inherit them as file descriptors... also, for gui= le buffering ports, how does it inherit those as file descriptors? Will it st= ill do the custom line buffering that shepherd does, also when a child process writes there?