Re: Running s6-supervise as PID 1?

From: Carlos Eduardo <carana2099_at_gmail.com>
Date: Mon, 20 Apr 2026 21:41:55 -0300

Doesn't item 3 kind of defeat of one of flag-newpidns' usecases (namely,
not leaving stragglers behind when the daemon is SIGKILL'd)? When
flag-newpidns is used for this purpose, all that needs to happen is for the
daemon to reap zombies it doesn't know it has - then it can run as PID 1,
and you don't need an intervening `trap -x` or w/e.

(s6-supervise, like most skalibs software, already reaps any zombies it can
find, AFAIK).

Em seg., 20 de abr. de 2026, 18:55, Demi Marie Obenour <
demiobenour_at_gmail.com> escreveu:

> I'm wondering if s6-svscan could have a per-service flag to run
> s6-supervise as PID 1 in a PID namespace.
>
> While one can run a subprocess of s6-supervise, it has a few limitations:
>
> - The child process must forward signals to all of its child processes.
> - It's an extra process that sits around doing nothing.
> - The commands that kill a child process while leaving its children
> alive don't work.
>
> This would also require s6-supervise to reap
> zombies, which is presumably simple.
>
> Skalibs already has all the needed APIs.
>
> I'm thinking of submitting a patch, but don't want to do so if it won't
> be accepted.
> --
> Sincerely,
> Demi Marie Obenour (she/her/hers)
>
>
>
Received on Tue Apr 21 2026 - 02:41:55 CEST

This archive was generated by hypermail 2.4.0 : Tue Apr 21 2026 - 02:42:45 CEST