(I was on vacation, sorry for the delayed answer.)
Could you please elaborate on the possible race condition? This is simply for
curiosity and educational purposes. It feels like a
lot of thought was put into s6 codebase, and a lot of ideas are not
immediatedly obvious for people not
On 2022-09-18 20:38, Laurent Bercot wrote:
>
> > I wonder what is the reason behind the naming convention? What is the
> > downside of simply writing to any present fifo file ?
>
> It could work like you're suggesting. But :
>
> - checking the type of a file is an additional fstat() system
I wonder what is the reason behind the naming convention? What is the
downside of simply writing to any present fifo file ?
It could work like you're suggesting. But :
- checking the type of a file is an additional fstat() system call
- there may be reasons in the future to store other
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))