From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2903 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jonathan de Boyne Pollard Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Tue, 25 Feb 2020 09:08:34 +0000 Message-ID: <00e1ad14-3bd4-c9ec-8f18-a33a1ba37bb6@NTLWorld.COM> References: <20200131043919.GF12551@cathexis.xen.prgmr.com> <20200214131544.tcvmh7tqu4hu2gul@caspervector> <1f198ed8-3682-26cd-e8d5-2efc412afde2@gmx.com> <18110531581952419@sas8-7ec005b03c91.qloud-c.yandex.net> <7003111582476686@vla3-6a5326aeb4ee.qloud-c.yandex.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53788"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 To: supervision Original-X-From: supervision-return-2492-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Tue Feb 25 10:08:36 2020 Return-path: Envelope-to: gcsg-supervision@m.gmane-mx.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by ciao.gmane.io with smtp (Exim 4.92) (envelope-from ) id 1j6WCh-000Dtk-TF for gcsg-supervision@m.gmane-mx.org; Tue, 25 Feb 2020 10:08:35 +0100 Original-Received: (qmail 17275 invoked by uid 89); 25 Feb 2020 09:09:01 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 17268 invoked from network); 25 Feb 2020 09:09:01 -0000 X-Originating-IP: [86.10.101.211] X-Authenticated-User: J.deBoynePollard-newsgroups@NTLWorld.COM X-Spam: 0 X-Authority: v=2.3 cv=L98zvdb8 c=1 sm=1 tr=0 a=FQ5CjUvp3JFI4KFGyeqcZw==:117 a=FQ5CjUvp3JFI4KFGyeqcZw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=KLjXpVt4cxFhlJKLY9QA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1582621714; bh=hCQbZVjeawMbTDxNW/zjq1qnctJ1K5vEvauV1ws2Asw=; h=Subject:To:References:From:Date:In-Reply-To; b=gzOjKaA0pK4NgnxX9nUsnPQd7R547dBjCEZiTbTaOlk6aJgJb5kdhnYinxRvIM9Ks f8jM5jQwNUUFgVIolLvzl5BX0Tr1eIwTglNcETqXetg0sSKMBvVI2cv7a1aafdZkfc FlDxKjJsELQKTI7Ieam3+IT+XtNKGm/nB+1pJSttzVpTc2jdx4E4zytiiD1dkFEQ/8 IDRh/IbV5lTZtpJNo9neHILd2o3vkd/lsYrl+eVApZDNymXCMEw/VuV5Nx2q699RUD 8B/B1NOxV53korNXApMNZcHMuTPofAOgGGH/lQHUs4eUN3+1pZMv5JZigu0nA/g36c mQqbNQeF3fjrQ== In-Reply-To: X-CMAE-Envelope: MS4wfJ78xOlQGhHwfQ9GP8NZeWV1WM98IHL/NVHAcmCo9TersQC502JowidoZuqd0KESOumIlDsK/QufpoYjRhKRzh61rdZBU5dMxUoXNn3ocw9Hdazgv5n+ 1Jtw1a/TMTgQdgsypINJPeJ9qnMPMH5xXHIn4BXnRi9rOXGIxbxr+UhPKk5pxuLfr3sDpQzUBEoV5imH/oOuqsbGNJp95gzIs1xasq//zMKHwAeICf7yuNNM Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2903 Archived-At: Laurent Bercot: > Of course, but once the fd is closed, /dev/console should not have > any impact on the process, so would a kbrequest still reach it? Yes. First: This is a kernel virtual terminal thing not a console thing. Strictly speaking, it is doing it wrongly to access it through the console device, which is not necessarily a KVT. Second: The mechanism does not require an open file descriptor. It requires that the target process never terminate, because there's no symmetrical kernel API function to disable the mechanism once it has been enabled, but it does not require that that process have any particular file descriptors open.