ftrig pipe naming convention

From: Ihor Antonov <ihor_at_antonovs.family>
Date: Sun, 18 Sep 2022 08:41:59 -0700

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 ":_at_", 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
Received on Sun Sep 18 2022 - 17:41:59 CEST

This archive was generated by hypermail 2.4.0 : Sun Sep 18 2022 - 17:42:30 CEST