From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17912 invoked from network); 27 Nov 2021 20:45:50 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 27 Nov 2021 20:45:50 -0000 Received: (qmail 32221 invoked by uid 89); 27 Nov 2021 20:46:15 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 32214 invoked from network); 27 Nov 2021 20:46:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=RCy1a4Ri8zm0zowzRi8ArSDRJvr3HfWNpxRgttgOWIvZPJDmOpp5rsm/hiXb5Z0BNEBUdm4oentE3mCMN7J9dr+C9C4TrO+OmVZUhmZIeiJ6sDTP2hq5juBALd5Fd+SKWYBqN1aunDauHTRLBYUEZl/BkKMP8syEomOub3xB5WA=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1638045944; bh=f39A/w4nrvxWxIuu/V39m+O49tE=; l=1185; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Fs4CyQN/MNJUMnK5iOLEt2VmJB82AhjnijcXZVqvvfMxBQNIptnxdGzVn/dShydcK Yl6TcuQ18kYgR4OL8pLD4cCb5bwxFlii2RVyYVTerWJi6RLhlcBvMTqC3q7ESIK19m AoBHUS6oa35sXQIS6XgTWYF/0iy2ROWAmWyfb3zM= X-Originating-IP: [184.90.157.212] Date: Sat, 27 Nov 2021 15:45:44 -0500 From: Steve Litt To: Supervision Subject: Re: runit: why ignore SIGCONT for stages? Message-ID: <20211127154544.750cef22@mydesk.domain.cxm> In-Reply-To: References: <87tug3vzex.fsf@vuxu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Guillermo said on Sat, 27 Nov 2021 17:05:14 -0300 >This was meant for the mailing list. I accidentally replied to the >author instead. Sorry Leah! > >El mar, 23 nov 2021 a las 9:18, Leah Neukirchen escribi=C3=B3: >> >> [...] This seems to be due to runit(8) before execing >> into the stages: >> >> sig_unblock(sig_cont); >> sig_ignore(sig_cont); >> ... >> strerr_warn3(INFO, "enter stage: ", stage[st], 0); >> execve(*prog, (char *const *)prog, envp); >> >> [...] Can someone explain why? =20 > >I guess only the author can provide an authoritative answer, but this >looks like a bug. It is possible that sig_uncatch() was meant here. >That's what the code calls for the other two signals that runit(8) >catches (SIGCHLD and SIGINT). > >sig_ignore() makes no sense here, wouldn't that make 'sv cont' useless >for processes of the init system's supervision tree? It would seem so, and yet sv cont mydaemon starts up a paused mydaemon. So there's something we're missing. SteveT Steve Litt=20 Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques