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 731 invoked from network); 18 Sep 2022 15:42:03 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 18 Sep 2022 15:42:03 -0000 Received: (qmail 12455 invoked by uid 89); 18 Sep 2022 15:42:26 -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 12448 invoked from network); 18 Sep 2022 15:42:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1663515710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=ueWAGjQr1loRBvmgBg/mA34g0BZKA2lgUU9vXhmDxhM=; b=FUNuj5RqLIUZokDOljgusX7NVM/sYFSOP6a0Y+tnTq1wORzb1SriSlaBYfC7WDDGda6NtB TMKP8M4aJYsGSPx7Pw/wltJahnueCfLycS/ZsECSSl3EjS8r+nw9DsMQqT3VyRYUBCxsyU C+ih9S8b8VugnRLgZwmueti9cQIxObw= Date: Sun, 18 Sep 2022 08:41:59 -0700 From: Ihor Antonov To: supervision@list.skarnet.org Subject: ftrig pipe naming convention Message-ID: <20220918154159.che33klmotj6nps6@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello As I was playing with s6 I found out that not every fifo placed in ./event gets notification. After some digging I found out why. https://github.com/skarnet/s6/blob/master/src/libs6/ftrigw_notifyb_nosig.c#L33-L34 if (strncmp(d->d_name, FTRIG1_PREFIX ":@", FTRIG1_PREFIXLEN + 2)) continue ; if (strlen(d->d_name) != FTRIG1_PREFIXLEN + 33) continue ; I wonder what is the reason behind the naming convention? What is the downside of simply writing to any present fifo file ? Thanks Ihor