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,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27302 invoked from network); 29 Sep 2021 12:24:28 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2021 12:24:28 -0000 Received: (qmail 5635 invoked by uid 89); 29 Sep 2021 12:24:49 -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 5628 invoked from network); 29 Sep 2021 12:24:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=F3krOYSDlUcpJfK8lAyVYOnqqDyg3JSFmToy3mrcbR8=; b=f2BuI/sz/al2+O3I3cziLeOvYDrNW1Refw1A+GgaSUFB8noQnJclh0j8AmLgv0+MGF idx2yJ02d37dHQvWQEAzBOfYV3fRgRIPASI8G+Ggsc5YN8Ol3bT1WvswLzo1qbRK40ft 5m4Ylu74zHHTfXnKYPsRLT9Wjt3w+en8yRLOmFg9CvLbX3oIit/gSuyEWhoMiJeCWzaN sGRiEoDewqs+eK4D76J43n+bR63QhMLYeC6RkIo/65AyfhxW5ur/wCrmZbQzG9PS5dwA G3w1v16UC+IVgIPz2gESK/ppw/vpzaD4IfUWCFz0Vn1BJKY8rU9yXzm1fEyuhYfkNSkM Kk+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=F3krOYSDlUcpJfK8lAyVYOnqqDyg3JSFmToy3mrcbR8=; b=Fi3H8eXPXPiHNoAVEOOnp17MVcLwpCeQej7v6GHeV/MXwV4VWJtLNCaOJ7TECdNL02 NPhecnqyVx9BSHBBf+ZjqJaDfivFpclLKLH/PIiv2ltjDUbyCCC2BK6yltjumzbiEdGq rBRIF1lzqoGteI6t95XNlU0MExMJ42c8C/0w2RogVpIWbXIr2Wvu552tbASedgzY/4LP YDZOkvFO6gFfEJJJoB/+V+Oj3iQoTQT9M1/jnnkUsDcAlNBwWW5zVzSPcETJQMks6F0y CYb8ksZN6fvV0WXnDTirl+HIn0XgowdK1yA15AHor2dthH6Hrtd3TX3prE+KrijRaO0f JyVQ== X-Gm-Message-State: AOAM533T1kBC+P/mkq6eiYBSI/Aymu9xn8ZNOlw4fgah4pLaeM+iNoNO RRMnu7fKNmY2WIYKBPxEkDvIpmyI5SCMDda7fObCULsSexD+bA== X-Google-Smtp-Source: ABdhPJwif5z+O/adY0Lcx0QkyJVNG3xjrPPvy6Ox5/UCFghg7IbtdQ+0v47o5yj9Mq6baKggIlcAN0huJY+N8cyy/w8= X-Received: by 2002:a05:6512:10c3:: with SMTP id k3mr9720160lfg.72.1632918261735; Wed, 29 Sep 2021 05:24:21 -0700 (PDT) MIME-Version: 1.0 From: Carlos Eduardo Date: Wed, 29 Sep 2021 09:24:54 -0300 Message-ID: Subject: Readiness notification using signals To: supervision@list.skarnet.org Content-Type: text/plain; charset="UTF-8" I'm supervising an instance of an X Server using s6. X.Org has a built-in readiness notification mechanism: it sends a USR1 to its parent process once it's ready. From what I know, it would be s6-supervise. However, after reading the documentation, there doesn't seem to be a way to set up custom USR1 handlers for s6-supervise. As far as I know, this leaves me with two, not quite ideal solutions: make the run script spawn X and do readiness notification on its behalf (which lengthens the supervision chain), or poll it (which is what I've been doing). Is there a way to not let the information from this USR1 not "go to waste"? Forgive me if I'm not seeing an obvious solution for this problem that doesn't involve patching either software.